北京安通林JIS系统
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.
 
 
 

75 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Stone.Common;
using Stone.WinBiz.SystemData;
using Stone.Entity;
using Stone.WinBiz.BasicData;
namespace Stone.WinModule.BasicData
{
public partial class frmColorDetail : Stone.WinModule.BasicData.frmBaseMainDetail
{
public frmColorDetail()
{
InitializeComponent();
this.txtCarType.DataSource = new Entity_t_CarType().GetData().Tables[0];
this.txtCarType.ValueMember = "Code";
this.txtCarType.DisplayMember = "Code";
}
private void frmColorDetail_Load(object sender, EventArgs e)
{
}
public override bool GetData()
{
if (!MyValidator.IsEmpty(this.txtColor, "")) return false;
base.GetData();
drData["CarType"] = MyStrings.GetString(this.txtCarType.SelectedValue.ToString());
drData["Code"] = MyStrings.GetString(this.txtColor.Text.Trim());
return true;
}
public override bool SetData()
{
if (base.SetData())
{
this.txtCarType.SelectedValue = drData["CarType"].ToString();
this.txtColor.Text= drData["Code"].ToString();
}
return false;
}
public override void Clear()
{
base.Clear();
this.txtColor.Text = "";
this.txtColor.Focus();
}
}
}