Esempio n. 1
0
        protected void GetSuppliersById(int SuppliersID)
        {
            Supplierstbl Sup = new Supplierstbl
            {
                SupplierID = SuppliersID
            };

            List <Supplierstbl> lstSuppliers = new List <Supplierstbl>();

            lstSuppliers = objSuppliersBL.GetSuppliersById(Sup).ToList();

            foreach (var el in lstSuppliers)
            {
                txtSupplier.Text       = el.Supplier;
                txtEmail.Text          = el.Email;
                txtName.Text           = el.PersonName;
                txtMobile.Text         = el.MobileNo;
                txtAddress.Text        = el.Address;
                txtAPDate.Text         = Convert.ToDateTime(el.ApiPurchaseDate).ToShortDateString();
                txtAPValue.Text        = el.ApiPurchaseValue;
                txtAPIKey.Text         = el.ApiKey;
                txtALink.Text          = el.AgentLink;
                txtSupplierCode.Text   = el.SupplierCode;
                txtUserName.Text       = el.UserName;
                txtPassword.Text       = el.Password;
                txtAccounts.Text       = el.AcntName;
                txtOperationsName.Text = el.OperationName;
                txtManagementName.Text = el.MngmtName;
                txtAEmail.Text         = el.AcntEmail;
                txtOEmail.Text         = el.OperationEmail;
                txtMEmail.Text         = el.MngmtEmail;
                txtANumber.Text        = el.AcntNumber;
                txtONumber.Text        = el.OperationNumber;
                txtMNumber.Text        = el.MngmtNumber;
                hdnSupplierID.Value    = el.SupplierID.ToString();
                //hdnAddress.Value = el.Address;
                //hdnAgentLink.Value = el.AgentLink;
                //hdnAgentCode.Value = el.AgentCode;
                //hdnUserName.Value = el.UserName;
                //hdnPassword.Value = el.Password;
            }
        }
        protected void GetSuppliersById(int SuppliersID)
        {
            Supplierstbl Sup = new Supplierstbl
            {
                SupplierID = SuppliersID
            };

            List <Supplierstbl> lstSuppliers = new List <Supplierstbl>();

            lstSuppliers = objSuppliersBL.GetSuppliersById(Sup).ToList();

            foreach (var el in lstSuppliers)
            {
                hdnSupplierID.Value    = el.SupplierID.ToString();
                lblGRNConnect.Text     = el.Supplier;
                lblSEmail.Text         = el.Email;
                lblNam.Text            = el.PersonName;
                lblSMobile.Text        = el.MobileNo;
                lblAdd.Text            = el.Address;
                lblAgntLnk.Text        = el.AgentLink;
                lblAgntCd.Text         = el.SupplierCode;
                lblUN.Text             = el.UserName;
                lblPasswrd.Text        = el.Password;
                lblAPDate.Text         = Convert.ToDateTime(el.ApiPurchaseDate).ToShortDateString();
                lblAPValue.Text        = el.ApiPurchaseValue;
                lblApiKey.Text         = el.ApiKey;
                txtAName.Text          = el.AcntName;
                txtOperationsName.Text = el.OperationName;
                txtManagementName.Text = el.MngmtName;
                txtAEmail.Text         = el.AcntEmail;
                txtOEmail.Text         = el.OperationEmail;
                txtMEmail.Text         = el.MngmtEmail;
                txtANumber.Text        = el.AcntNumber;
                txtONumber.Text        = el.OperationNumber;
                txtMNumber.Text        = el.MngmtNumber;
            }
        }