public static int SaveAPAdjust(APAdjust info)
 {
     int kq = ConnectDB.ExecuteScalar("sp_APAdjustSave",
         new String[] {"BranchID","AdjNbr","AdjDate","AdjDesc","AdjAcct","AdjAmt"
                         ,"Rlsed","Note","FromDateTmp","ToDateTmp","VendIDTmp"
                         ,"Crtd_DateTime","Crtd_Prog","Crtd_User","LUpd_DateTime"
                         ,"LUpd_Prog","LUpd_User","Version" },
         new Object[] {info.BranchID,info.AdjNbr,info.AdjDate,info.AdjDesc,info.AdjAcct,info.AdjAmt
                         ,info.Rlsed,info.Note,info.FromDateTmp,info.ToDateTmp,info.VendIDTmp
                         ,info.Crtd_DateTime,info.Crtd_Prog,info.Crtd_User,info.LUpd_DateTime
                         ,info.LUpd_Prog,info.LUpd_User,info.Version});
     return kq;
 }
Esempio n. 2
0
 private void _BindPanel(APAdjust info)
 {
     cmbBranchID.SelectedValue = info.BranchID;
     cmbStatus.SelectedValue = info.Rlsed;
     txtAdjNbr.Text = info.AdjNbr;
     dtmAdjDate.Value = info.AdjDate;
     txtAdjAmt.Text = info.AdjAmt.ToString();
     txtAdjDescr.Text = info.AdjDesc;
     txtVendID.Text = info.VendIDTmp;
 }