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.
 
 
 
 

59 lines
1.5 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;
namespace Stone.WinModule.BasicData
{
public partial class frmBillNODetail : Stone.WinModule.BasicData.frmBaseMainDetail
{
public frmBillNODetail()
{
InitializeComponent();
}
private void frmColorDetail_Load(object sender, EventArgs e)
{
}
public override bool GetData()
{
if (!MyValidator.IsEmpty(this.txtCode, "")) return false;
if (!MyValidator.IsEmpty(this.tbPONumber, "")) return false;
base.GetData();
drData["type"] = MyStrings.GetString(this.txtCode.Text.Trim());
drData["value"] = MyStrings.GetString(this.tbPONumber.Text.Trim());
return true;
}
public override bool SetData()
{
if (type == 2)
{
this.txtCode.ReadOnly = true;
}
if (base.SetData())
{
this.txtCode.Text = drData["type"].ToString();
this.tbPONumber.Text = drData["value"].ToString();
}
return false;
}
public override void Clear()
{
base.Clear();
this.txtCode.Text = "";
this.tbPONumber.Text = "";
this.txtCode.Focus();
}
}
}