예제 #1
0
 public sealed override string ToString()
 {
     return("{ AC1: " + AC1.ToString("X") +
            ", AC2: " + AC2.ToString("X") +
            ", AC3: " + AC3.ToString("X") +
            ", AC4: " + AC4.ToString("X") +
            ", AC5: " + AC5.ToString("X") +
            ", AC6: " + AC6.ToString("X") +
            ", VB1: " + B1.ToString("X") +
            ", VB2: " + B2.ToString("X") +
            ", MB: " + MB.ToString("X") +
            ", MC: " + MC.ToString("X") +
            ", MD: " + MD.ToString("X") + " }");
 }
예제 #2
0
 public void CallEdit()
 {
     try
     {
         if (ViewState["Flag"].ToString() != "AD")
         {
             DT = RP.GetInfo(ViewState["Id"].ToString(), "Disp", Session["BRCD"].ToString());
             if (DT.Rows.Count > 0)
             {
                 TxtPno.Text = DT.Rows[0]["REC_PRD"].ToString();
                 string AC1;
                 AC1 = LI.Getaccno(TxtPno.Text, Session["BRCD"].ToString());
                 if (AC1 != null)
                 {
                     string[] AC = AC1.Split('_');;
                     TxtRecPname.Text = AC[1].ToString();
                 }
                 TxtPostPrd.Text = DT.Rows[0]["POST_PRD"].ToString();
                 string AC2;
                 AC2 = LI.Getaccno(TxtPostPrd.Text, Session["BRCD"].ToString());
                 if (AC2 != null)
                 {
                     string[] ACp = AC2.Split('_');;
                     TxtPname.Text = ACp[1].ToString();
                 }
                 string AC3;
                 TxtExrec.Text = DT.Rows[0]["EXRECCODE"].ToString();
                 AC3           = LI.Getaccno(TxtExrec.Text, Session["BRCD"].ToString());
                 if (AC3 != null)
                 {
                     string[] ACe = AC3.Split('_');;
                     TxtEname.Text = ACe[1].ToString();
                 }
                 TxtCol.Text    = DT.Rows[0]["COLUMNNO"].ToString();
                 TxtShort.Text  = DT.Rows[0]["SHORTNAME"].ToString();
                 TxtMarati.Text = DT.Rows[0]["SHORTMARATHI"].ToString();
                 Txtvalue.Text  = DT.Rows[0]["VALUE"].ToString();
                 Txttype.Text   = DT.Rows[0]["TYPE"].ToString();
                 Txtrate.Text   = DT.Rows[0]["RATE"].ToString();
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }