You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.3 KiB
79 lines
2.3 KiB
using Stone.Common;
|
|
using Stone.Entity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Stone.WinModule.BasicData
|
|
{
|
|
public partial class frmProdnoBaseDetail : Stone.WinModule.BasicData.frmBaseMainDetail
|
|
{
|
|
public frmProdnoBaseDetail()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.txtCarType.DataSource = new Entity_t_CarType().GetData().Tables[0];
|
|
this.txtCarType.ValueMember = "Code";
|
|
this.txtCarType.DisplayMember = "Code";
|
|
|
|
this.txtPosition.DataSource = new Entity_t_Position().GetData().Tables[0];
|
|
this.txtPosition.ValueMember = "Code";
|
|
this.txtPosition.DisplayMember = "Code";
|
|
}
|
|
|
|
private void frmProdnoBaseDetail_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public override bool GetData()
|
|
{
|
|
if (!MyValidator.IsEmpty(this.txtProdno, "")) return false;
|
|
|
|
|
|
base.GetData();
|
|
|
|
|
|
drData["cartype"] = MyStrings.GetString(this.txtCarType.SelectedValue.ToString());
|
|
drData["prodno"] = MyStrings.GetString(this.txtProdno.Text.Trim());
|
|
drData["position"] = MyStrings.GetString(this.txtPosition.SelectedValue.ToString());
|
|
drData["description"] = MyStrings.GetString(this.txtDescription.Text.Trim());
|
|
drData["sysdtm"] = MyDateTime.GetServerDateTime();
|
|
drData["Option"] = MyStrings.GetString(this.txtOption.Text.Trim());
|
|
|
|
return true;
|
|
}
|
|
|
|
public override bool SetData()
|
|
{
|
|
|
|
if (base.SetData())
|
|
{
|
|
|
|
this.txtCarType.SelectedValue = drData["cartype"].ToString();
|
|
this.txtProdno.Text = drData["prodno"].ToString();
|
|
this.txtPosition.Text = drData["position"].ToString();
|
|
this.txtDescription.Text = drData["description"].ToString();
|
|
this.txtOption.Text = drData["Option"].ToString();
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
base.Clear();
|
|
|
|
this.txtProdno.Text = "";
|
|
this.txtDescription.Text = "";
|
|
|
|
this.txtProdno.Focus();
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|