コード例 #1
0
        private void frmOtherSetting_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;

            btnFooterCancel.BackgroundImage  = B_Leave;
            btnFooterSave.BackgroundImage    = B_Leave;
            btnPrinterSave.BackgroundImage   = B_Leave;
            btnPrinterCancel.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            lblPCName.Text      = Environment.MachineName;
            txtMachineName.Text = Environment.MachineName;

            LoadStore();
            Load_PC_Store_Mapping();
            BindStoreSettingData();
            LoadPrinter();
            BindPrinterDetails();
            LoadData();
            ClearAll();

            groupBox1.Enabled = false;
        }
コード例 #2
0
        private void Size_Master_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage     = B_Leave;
            btnSave.BackgroundImage    = B_Leave;
            btnEdit.BackgroundImage    = B_Leave;
            btnUpdate.BackgroundImage  = B_Leave;
            btnDelete.BackgroundImage  = B_Leave;
            btnCancel.BackgroundImage  = B_Leave;
            btnAddMore.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            FillSizeTypeData();
            FillSearchBySizeTypeData();
            InitItemTable();

            dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.EnableResizing;
            //Most time consumption enum is DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders
            dataGridView1.RowHeadersVisible = false; // set it to false if not needed

            LoadData();

            grpSizeType.Enabled = false;
        }
コード例 #3
0
        private void Store_Master_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            LoadData();
        }
コード例 #4
0
        private void frmUserRights_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            InitRightTable();
            LoadRightGrid();
            loadUser();
        }
コード例 #5
0
        private void Employee_Details_Load(object sender, EventArgs e)
        {
            dtpDOB.ShowCheckBox = true;
            dtpDOB.Checked      = false;

            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            LoadData();
        }
コード例 #6
0
ファイル: Category_Master.cs プロジェクト: khan89aamir/IMS
        private void Category_Master_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;

            //clsUtility.IsAdmin = true;//removed

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);
            //ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning, clsUtility.IsAdmin);

            LoadData();
        }
コード例 #7
0
        private void frmUserManagement_Load(object sender, EventArgs e)
        {
            //clsUtility._UserMessageType = clsUtility.MessageType.SparklePurple;
            //clsUtility._UserMessageType = clsUtility.MessageType.Office2010Blue;

            LoadTheme();

            EnableDisable(false);

            //DBName = ObjDAL.GetCurrentDBName(true);

            //string a = ObjDAL.ReadConStringFromFile("AppConfig/ServerConfig.sc", true);
            //string[] arr = a.Split(new char[] { ';', '=' });
            //DBName = arr[3].ToString();
            LoadData();

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning, admin);
        }
コード例 #8
0
        private void Delivering_Purchase_Bill_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;
            btnSearch.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            FillStoreData();
            FillSizeTypeData();
            FillCountryData();
            FillBrandData();
            FillCategoryData();
            //InitItemTable();
        }
コード例 #9
0
        private void Size_Master_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage     = B_Leave;
            btnSave.BackgroundImage    = B_Leave;
            btnEdit.BackgroundImage    = B_Leave;
            btnUpdate.BackgroundImage  = B_Leave;
            btnDelete.BackgroundImage  = B_Leave;
            btnCancel.BackgroundImage  = B_Leave;
            btnAddMore.BackgroundImage = B_Leave;

            //clsUtility.IsAdmin = true;//removed

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            //ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning, clsUtility.IsAdmin);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            FillSizeTypeData();
            FillSearchBySizeTypeData();
            InitItemTable();
            LoadData();

            grpSizeType.Enabled = false;
        }
コード例 #10
0
        private void Product_Master_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;
            btnImport.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.EnableResizing;
            //Most time consumption enum is DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders
            dataGridView1.RowHeadersVisible = false; // set it to false if not needed

            LoadData();

            FillDepartmentData();
            FillSearchCategory();

            grpProduct.Focus();
        }
コード例 #11
0
        private void Purchase_Invoice_Load(object sender, EventArgs e)
        {
            btnAdd.BackgroundImage    = B_Leave;
            btnSave.BackgroundImage   = B_Leave;
            btnEdit.BackgroundImage   = B_Leave;
            btnUpdate.BackgroundImage = B_Leave;
            btnDelete.BackgroundImage = B_Leave;
            btnCancel.BackgroundImage = B_Leave;

            ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel);
            ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning);

            dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.EnableResizing;
            //Most time consumption enum is DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders
            dataGridView1.RowHeadersVisible = false; // set it to false if not needed

            LoadData();

            FillSupplierData();
            FillCountryData();

            dtDate = DateTime.Now;
            dtpBillDate.MaxDate = dtDate;
        }