private void frmDispatchDCPrint_Load(object sender, EventArgs e)
        {
            cmbBranch.Properties.DataSource    = objMasterRep.GetBranch();
            cmbBranch.Properties.ValueMember   = "BRANCHID";
            cmbBranch.Properties.DisplayMember = "BRANCHNAME";

            cmbCategory.Properties.DataSource    = objMasterRep.GetCategory();
            cmbCategory.Properties.ValueMember   = "CATEGORYID";
            cmbCategory.Properties.DisplayMember = "CATEGORYNAME";
        }
 private void frmCategory_Load(object sender, EventArgs e)
 {
     try
     {
         gcCategory.DataSource = ObjMasterRep.GetCategory();
     }
     catch (Exception ex) {
         ErrorMgmt.ShowError(ex);
         ErrorMgmt.Errorlog.Error(ex);
     }
 }
예제 #3
0
 private void frmSubCategory_Load(object sender, EventArgs e)
 {
     cmbCategory.Properties.DataSource    = objMasterRep.GetCategory();
     cmbCategory.Properties.DisplayMember = "CATEGORYNAME";
     cmbCategory.Properties.ValueMember   = "CATEGORYID";
     if (Convert.ToInt32(ObjSubCategory.SUBCATEGORYID) > 0)
     {
         this.Text = "Edit Sub Category";
         txtsubCategoryName.EditValue = ObjSubCategory.SUBCATEGORYNAME;
         cmbCategory.EditValue        = ObjSubCategory.CATEGORYID;
     }
 }
        private void frmBarCodePrint_Load(object sender, EventArgs e)
        {
            try
            {
                cmbItemCode.Properties.DataSource    = Utility.GetNonEAN();
                cmbItemCode.Properties.DisplayMember = "ITEMCODE";
                cmbItemCode.Properties.ValueMember   = "ITEMCODEID";

                cmbCategory.Properties.DataSource    = objMasterRep.GetCategory();
                cmbCategory.Properties.DisplayMember = "CATEGORYNAME";
                cmbCategory.Properties.ValueMember   = "CATEGORYID";

                dtpPackedDate.EditValue = DateTime.Now;
            }
            catch (Exception ex) {}
        }
예제 #5
0
        private void frmAddUser_Load(object sender, EventArgs e)
        {
            try
            {
                cmbRole.Properties.DataSource    = objMasterRep.GetRole();
                cmbRole.Properties.DisplayMember = "ROLENAME";
                cmbRole.Properties.ValueMember   = "ROLEID";

                cmbBranch.Properties.DataSource    = objMasterRep.GetBranch();
                cmbBranch.Properties.DisplayMember = "BRANCHNAME";
                cmbBranch.Properties.ValueMember   = "BRANCHID";

                cmbCategory.Properties.DataSource    = objMasterRep.GetCategory();
                cmbCategory.Properties.DisplayMember = "CATEGORYNAME";
                cmbCategory.Properties.ValueMember   = "CATEGORYID";

                cmbReportingLead.Properties.DataSource    = objMasterRep.GetUser();
                cmbReportingLead.Properties.DisplayMember = "USERNAME";
                cmbReportingLead.Properties.ValueMember   = "USERID";

                if (Convert.ToInt32(ObjUser.USERID) > 0)
                {
                    this.Text                  = "Edit User";
                    txtUserName.EditValue      = ObjUser.USERNAME;
                    txtFullName.EditValue      = ObjUser.FULLNAME;
                    txtPhoneNumber.EditValue   = ObjUser.CNUMBER;
                    txtEmail.EditValue         = ObjUser.EMAIL;
                    cmbRole.EditValue          = ObjUser.ROLEID;
                    cmbReportingLead.EditValue = ObjUser.REPORTINGLEADID;
                    cmbBranch.EditValue        = ObjUser.BRANCHID;
                    cmbCategory.EditValue      = ObjUser.CATEGORYID;
                    rgGenderr.SelectedIndex    = Convert.ToInt32(ObjUser.GENDER);
                }
            }
            catch (Exception ex)
            {
                ErrorMgmt.ShowError(ex);
                ErrorMgmt.Errorlog.Error(ex);
            }
        }