Exemple #1
0
        private void BarcodePrintForm_Load(object sender, EventArgs e)
        {
            SystemSettingModel displayData = new SystemSettingModel();

            displayData = settingBLL.GetSettingData();
            string[] sectionType = displayData.SectionType.Split('|');
            foreach (string s in sectionType)
            {
                if (s.Equals("1"))
                {
                    chFront.Checked = true;
                }
                if (s.Equals("2"))
                {
                    chBack.Checked = true;
                }
                if (s.Equals("3"))
                {
                    chWarehouse.Checked = true;
                }
                if (s.Equals("4"))
                {
                    chFreshFood.Checked = true;
                }
            }
        }
Exemple #2
0
        private void DownloadMasterForm_Load(object sender, EventArgs e)
        {
            fileAS400 = genTextFileBLL.GetListFileNameDownloadAS400();
            var settingData = settingBLL.GetSettingData();

            filePathSKU.Text         = settingData.PathSKUFile;
            filePathBarcode.Text     = settingData.PathBarcodeFile;
            filePathPackBarcode.Text = settingData.PathPackBarcodeFile;
            filePathBrand.Text       = settingData.PathBrandFile;

            BrowseSKU         = btnBrowseSKU.Enabled;
            BrowseBarcode     = btnBrowseBarcode.Enabled;
            BrowsePackBarcode = btnBrowsePackBarcode.Enabled;
            BrowseBrand       = btnBrowseBrand.Enabled;

            string sectionType = settingData.SectionType.Substring(0, 1);

            switch (sectionType)
            {
            case "1":
            case "2":
                rbFront.Checked = true;
                modeFlg         = 1;
                break;

            case "3":
                rbStock.Checked = true;
                modeFlg         = 3;
                break;

            case "4":
                rbFreshfood.Checked = true;
                modeFlg             = 4;
                break;
            }

            DisableAllBrowseButton();
            btnBrowseSKU.Enabled        = BrowseSKU;
            btnClearData.Enabled        = btnClearData.Enabled;
            btnLoad.Enabled             = btnLoad.Enabled;
            btnReport.Enabled           = btnReport.Enabled;
            dataType                    = "SKU";
            masterDataGridView.ReadOnly = true;
        }
Exemple #3
0
 public SettingsForm()
 {
     InitializeComponent();
     displayData = settingBLL.GetSettingData();
     DisplayData(displayData);
 }