Ejemplo n.º 1
0
 /// <summary>
 /// 绑定项目
 /// </summary>
 private void BindItem()
 {
     using (ContractProvider contProvider = new ContractProvider())
     {
         DataRow row = contProvider.GetCustomerByNo(this.CurrentID);
         if (row != null)
         {
             rccust.Text          = row["rccust"].ToString();
             rcnam.Text           = row["rcnam"].ToString();
             rcarea.SelectedValue = row["rcarea"].ToString();
             rcprov.Text          = row["rcprov"].ToString();
             rccoty.Text          = row["rccoty"].ToString();
             rcadr1.Text          = row["rcadr1"].ToString();
             rcadr2.Text          = row["rcadr2"].ToString();
             rcadr3.Text          = row["rcadr3"].ToString();
             rcpon1.Text          = row["rcpon1"].ToString();
             rcpon2.Text          = row["rcpon2"].ToString();
             rcpon3.Text          = row["rcpon3"].ToString();
             rcfax1.Text          = row["rcfax1"].ToString();
             rcfax2.Text          = row["rcfax2"].ToString();
             rcctat.Text          = row["rcctat"].ToString();
             rcemai1.Text         = row["rcemai1"].ToString();
             rcemai2.Text         = row["rcemai2"].ToString();
             rcsalr.SelectedValue = row["rcsalr"].ToString();
             rcterm.SelectedValue = row["rcterm"].ToString();
             rctrc.SelectedValue  = row["rctrc"].ToString();
             rccur.SelectedValue  = row["rccur"].ToString();
             rcbank.Text          = row["rcbank"].ToString();
             rcacct.Text          = row["rcacct"].ToString();
             rchyb.Text           = row["rchyb"].ToString();
             rctax.SelectedValue  = row["rctax"].ToString().PadLeft(2, '0');
             rctcod.Text          = row["rctcod"].ToString();
             rccrd.Text           = row["rccrd"].ToString();
             rcgrad.Text          = row["rcgrad"].ToString();
             rcdflg.SelectedValue = row["rcdflg"].ToString();
             rckind.Text          = row["rckind"].ToString();
         }
     }
 }