コード例 #1
0
 public frmInvoice(string orderNo, string logNo)
 {
     try
     {
         InitializeComponent();
         m_UserID      = Authenticate.LoggedInUser.UserId;
         m_LocationID  = Common.CurrentLocationId;
         ErrorCode     = string.Empty;
         InvoiceNo     = string.Empty;
         ReturnMessage = string.Empty;
         OrderNo       = orderNo;
         LogNo         = logNo;
         if (string.IsNullOrEmpty(orderNo) && string.IsNullOrEmpty(LogNo))
         {
             ErrorCode = "40010";
         }
         else
         {
             if (LogNo.Equals(string.Empty))
             {
                 InitailizeControls();
             }
             else
             {
                 CI        invoice     = new CI();
                 string    error       = string.Empty;
                 DataTable dtItems     = new DataTable();
                 bool      isProcessed = invoice.ProcessLog(logNo, m_LocationID, m_UserID, ref error, ref dtItems);
                 if (isProcessed && error.Trim().Equals(string.Empty))
                 {
                     ErrorCode     = string.Empty;
                     ReturnMessage = "8011";
                 }
                 else
                 {
                     ErrorCode = error;
                 }
                 //ProcessLog();
             }
         }
     }
     catch (Exception ex)
     {
         ErrorCode     = "30007";
         ReturnMessage = ex.ToString();
     }
 }