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.
68 lines
1.7 KiB
68 lines
1.7 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.Entity;
|
|
|
|
namespace Stone.WinModule.BasicData
|
|
{
|
|
public partial class frmPart_ValidityDaysDetail : Stone.WinModule.BasicData.frmBaseMainDetail
|
|
{
|
|
public frmPart_ValidityDaysDetail()
|
|
{
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
private void frmPart_ValidityDaysDetail_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
public override bool GetData()
|
|
{
|
|
if (!MyValidator.IsEmpty(this.txtParCode, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtValidityDays, "")) return false;
|
|
if (!MyValidator.IsEmpty(this.txtMemo, "")) return false;
|
|
|
|
|
|
|
|
base.GetData();
|
|
drData["PartCode"] = MyStrings.GetString(this.txtParCode.Text.Trim());
|
|
drData["ValidityDays"] = MyStrings.GetString(this.txtValidityDays.Text.Trim());
|
|
drData["Memo"] = MyStrings.GetString(this.txtMemo.Text.Trim());
|
|
|
|
return true;
|
|
}
|
|
|
|
public override bool SetData()
|
|
{
|
|
if (base.SetData())
|
|
{
|
|
this.txtParCode.Text = drData["PartCode"].ToString();
|
|
this.txtValidityDays.Text = drData["ValidityDays"].ToString();
|
|
this.txtMemo.Text = drData["Memo"].ToString();
|
|
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
base.Clear();
|
|
this.txtParCode.Text = "";
|
|
this.txtValidityDays.Text = "";
|
|
this.txtMemo.Text = "";
|
|
|
|
this.txtParCode.Focus();
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|