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.
112 lines
3.5 KiB
112 lines
3.5 KiB
using Stone.Common;
|
|
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 frmModunoMBaseDetail : Stone.WinModule.BasicData.frmBaseMainDetail
|
|
{
|
|
public frmModunoMBaseDetail()
|
|
{
|
|
InitializeComponent();
|
|
|
|
DataTable dtCharacter = new DataTable();
|
|
dtCharacter.Columns.Add("Name");
|
|
|
|
DataRow drCharacter = dtCharacter.NewRow();
|
|
drCharacter["Name"] = "7";
|
|
dtCharacter.Rows.Add(drCharacter);
|
|
|
|
drCharacter = dtCharacter.NewRow();
|
|
drCharacter["Name"] = "8";
|
|
dtCharacter.Rows.Add(drCharacter);
|
|
|
|
this.txtBlevel.DataSource = dtCharacter;
|
|
this.txtBlevel.ValueMember = "Name";
|
|
this.txtBlevel.DisplayMember = "Name";
|
|
}
|
|
|
|
private void frmModunoMBaseDetail_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public override bool GetData()
|
|
{
|
|
if (!MyValidator.IsEmpty(this.txtModuno, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtCartype, "")) return false;
|
|
|
|
|
|
if (this.txtBlevel.SelectedValue == null)
|
|
{
|
|
this.txtBlevel.Focus();
|
|
throw new Exception("请选择blevel");
|
|
}
|
|
|
|
|
|
base.GetData();
|
|
|
|
|
|
drData["Moduno"] = MyStrings.GetString(this.txtModuno.Text.Trim());
|
|
drData["Cartype"] = MyStrings.GetString(this.txtCartype.Text.Trim());
|
|
drData["FL"] = this.txtFL.Checked;
|
|
drData["FR"] = this.txtFR.Checked;
|
|
drData["RL"] = this.txtRL.Checked;
|
|
drData["RR"] = this.txtRR.Checked;
|
|
drData["Blevel"] = MyStrings.GetString(this.txtBlevel.SelectedValue.ToString());
|
|
drData["Description"] = MyStrings.GetString(this.txtDescription.Text.Trim());
|
|
drData["Voided"] = this.txtVoided.Checked;
|
|
drData["sysdtm"] = MyDateTime.GetServerDateTime();
|
|
drData["Prodno"] = MyStrings.GetString(this.txtProdno.Text.Trim());
|
|
|
|
return true;
|
|
}
|
|
|
|
public override bool SetData()
|
|
{
|
|
|
|
if (base.SetData())
|
|
{
|
|
|
|
this.txtModuno.Text = drData["Moduno"].ToString();
|
|
this.txtCartype.Text = drData["Cartype"].ToString();
|
|
this.txtFL.Checked = Convert.ToBoolean(drData["FL"]);
|
|
this.txtFR.Checked = Convert.ToBoolean(drData["FR"]);
|
|
this.txtRL.Checked = Convert.ToBoolean(drData["RL"]);
|
|
this.txtRR.Checked = Convert.ToBoolean(drData["RR"]);
|
|
this.txtBlevel.SelectedValue = drData["Blevel"].ToString();
|
|
this.txtDescription.Text = drData["Description"].ToString();
|
|
this.txtVoided.Checked = Convert.ToBoolean(drData["Voided"]);
|
|
this.txtProdno.Text = drData["Prodno"].ToString();
|
|
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
base.Clear();
|
|
|
|
this.txtModuno.Text = "";
|
|
this.txtCartype.Text = "";
|
|
this.txtFL.Text = "";
|
|
this.txtFR.Text = "";
|
|
this.txtRL.Text = "";
|
|
this.txtRR.Text = "";
|
|
this.txtBlevel.SelectedValue = "";
|
|
this.txtDescription.Text = "";
|
|
this.txtProdno.Text = "";
|
|
this.txtVoided.Checked = false;
|
|
|
|
|
|
this.txtModuno.Focus();
|
|
}
|
|
|
|
}
|
|
}
|
|
|