Assignment action Method (displays the information to the text box):
public void show_infobase (int _peoid)
{
DataSet ds = new DataSet ();
ds = Platbll. Get_base (_peoid);
Tb_peoname. Text = ds. Tables[0]. rows[0]["Peoname"]. ToString (); Company Name
Tb_adress. Text = ds. Tables[0]. rows[0]["Peoaddress"]. ToString (); Registered Address
Cb_peotype. Value = Int. Parse (ds. Tables[0]. rows[0]["Peeid"]. ToString ()); Enterprise Type
Tb_manageruser. Text = ds. Tables[0]. rows[0]["Peoshortname"]. ToString ();//Default Administrative user
Tb_area. Text = ds. Tables[0]. rows[0]["Peoarea"]. ToString ();//Area
Tb_representative. Text = ds. Tables[0]. rows[0]["Peoprincipal"]. ToString ();//legal representative
Tb_tel. Text = ds. Tables[0]. rows[0]["Peophoneone"]. ToString ();//Contact phone
Tb_bankname. Text = ds. Tables[0]. rows[0]["Peoopenbank"]. ToString ();//Bank
Tb_banknumber. Text = ds. Tables[0]. rows[0]["Peobankaccounts"]. ToString ();//Bank Account
Tb_scope. Text = ds. Tables[0]. rows[0]["Scopbusiness"]. ToString ();//Business scope
Tb_peocaption. Text = ds. Tables[0]. rows[0]["Providremark"]. ToString ();//Enterprise Description
Rb_isvail. SelectedIndex = Int. Parse (ds. Tables[0]. rows[0]["ISVALID"]. ToString ());//is valid
DateTime datet = DateTime.Parse (ds. Tables[0]. rows[0]["Sys_enddate"]. ToString ());//Valid expiry date
Aspxdateedit1.value = datet;//valid expiry date
Tb_remark. Text = ds. Tables[0]. rows[0]["Sys_remark"]. ToString ();//Platform Notes
}
? Modify the Operation:
private int Update_base ()
{
int i=0;
Model.provideinfomodel model = new Model.provideinfomodel ();
Model. Peophoneone = Tb_tel. Text; Contact phone
Model. Sys_enddate = DateTime.Parse (ASPxDateEdit1.Value.ToString ()); Valid expiry date
Model. Sys_remark = Tb_remark. Text.trim (); Platform Notes
i = Platbll. Get_updatebdate (model, peoid);
if (i > 0)
{
return i;
}
return i;
}
An assignment operation when ASP. NET (C #) is modified