Exemplo n.º 1
0
 public bool BindData(string strProductCode,string strBranchCode)
 {
     this.strBranchCode=strBranchCode;
     this.strProductCode=strProductCode;
     ACMSLogic.OpenCarton.OpenCarton openCarton = new ACMSLogic.OpenCarton.OpenCarton();
     DataSet ds = openCarton.FindCurrentProductBalance(strProductCode,strBranchCode);
     if(ds!=null)
     {
         if(ds.Tables[0].Rows.Count==1)
         {
             DataTable dt = ds.Tables[0];
             this.txtOpeningBalance.Text = dt.Rows[0]["nQuantity"].ToString();
             return true;
         }
         else
         {
             UI.ShowWarningMessage(this,"No Record Found","No Record");
             return false;
         }
     }
     return false;
 }
Exemplo n.º 2
0
        public bool BindData(string strProductCode, string strBranchCode)
        {
            this.strBranchCode  = strBranchCode;
            this.strProductCode = strProductCode;
            ACMSLogic.OpenCarton.OpenCarton openCarton = new ACMSLogic.OpenCarton.OpenCarton();
            DataSet ds = openCarton.FindCurrentProductBalance(strProductCode, strBranchCode);

            if (ds != null)
            {
                if (ds.Tables[0].Rows.Count == 1)
                {
                    DataTable dt = ds.Tables[0];
                    this.txtOpeningBalance.Text = dt.Rows[0]["nQuantity"].ToString();
                    return(true);
                }
                else
                {
                    UI.ShowWarningMessage(this, "No Record Found", "No Record");
                    return(false);
                }
            }
            return(false);
        }