private void frmSiteDetails_Load(object sender, EventArgs e)
 {
     try
     {
         if (CommonFunc.Themeselect == "Theme 1")
         {
             ThemeChange();
         }
         this.tenderActionButton.btnSave.Click   += new System.EventHandler(btnSave_Click);
         this.tenderActionButton.btnCancel.Click += new System.EventHandler(btnCancel_Click);
         this.tenderActionButton.btnClear.Click  += new EventHandler(btnClear_Click);
         fillCountries();
         fillCurrencies();
         setTabIndex();
         setInitialFormsValidations();
         // CommonFunc.WriteResourceFile(this);
         CommonFunc.SetCultureFromResource(this);
         lblTaxNo.Text = "GSTNo.";
     }
     catch (Exception ex)
     {
         CommonFunc.ShowMessage(ex.Message, MessageType.Information);
         Logger.Log(ex.Message, Logger.LogingLevel.Error);
     }
 }
Beispiel #2
0
 private void frmManualPromotion_Load(object sender, EventArgs e)
 {
     //code added by vipul for issue id 0002831
     txtPromotionId.ReadOnly = true;
     if (CommonFunc.Themeselect == "Theme 1")
     {
         ThemeChange();
     }
     setInitialFormsValidations();
     //CommonFunc.WriteResourceFile(this);
     CommonFunc.SetCultureFromResource(this);
 }
Beispiel #3
0
 private void frmItemHierarchy_Load(object sender, EventArgs e)
 {
     try
     {
         if (CommonFunc.Themeselect == "Theme 1")
         {
             ThemeChange();
         }
         BindTree();
         HideAllControls();
         setInitialFormsValidations();
         //CommonFunc.WriteResourceFile(this);
         CommonFunc.SetCultureFromResource(this);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         Logger.Log(ex, Logger.LogingLevel.Error);
     }
 }
        private void frmTender_Load(object sender, System.EventArgs e)
        {
            try
            {
                if (CommonFunc.Themeselect == "Theme 1")
                {
                    ThemeChange();
                }
                this.tenderActionButton.btnSave.Click   += new System.EventHandler(btnSave_Click);
                this.tenderActionButton.btnCancel.Click += new System.EventHandler(btnCancel_Click);
                this.tenderActionButton.btnClear.Click  += new EventHandler(btnClear_Click);


                cboSite.Enabled        = false;
                cboProgramCode.Enabled = false;
                this.tenderTypes       = (from result in this.commonManager.GetTenderTypeList()
                                          select new DropDownModel
                {
                    Code = result.TenderType,
                    Description = result.Description
                }).ToList();
                CommonFunc.PopulateComboBoxDataForWindowsForm(ref cboTenderType, this.tenderTypes);
                //cboTenderType.DataSource = tenderTypes;
                //cboTenderType.DisplayMember = "Description";
                //cboTenderType.ValueMember = "Code";
                setInitialFormsValidations();
                Fillgrid();
                setTabIndex();
                // CommonFunc.WriteResourceFile(this);
                CommonFunc.SetCultureFromResource(this);
            }
            catch (System.Exception ex)
            {
                CommonFunc.ShowMessage(ex.Message, MessageType.Information);
                Logger.Log(ex.Message, Logger.LogingLevel.Error);
            }
            finally
            {
            }
        }
Beispiel #5
0
 private void frmStockOut_Load(object sender, EventArgs e)
 {
     try
     {
         if (CommonFunc.Themeselect == "Theme 1")
         {
             ThemeChange();
         }
         PopulateComboBoxStockOut();
         ResetArticleStockOutData();
         CommonFunc.SetCultureFromResource(this);
         //code added by roshan for issue id 2835
         lblStockOutReasons.NormalLabelText    = "Stock Out Reason";
         lblStockOutReasons.MandatoryLabelText = "*";
         lblStockOutReasons.ForeColor          = Color.Red;
     }
     catch (Exception ex)
     {
         CommonFunc.ShowMessage(ex.Message, MessageType.Information);
         Logger.Log(ex.Message, Logger.LogingLevel.Error);
     }
 }
Beispiel #6
0
 private void frmBarcode_Load(object sender, EventArgs e)
 {
     try
     {
         if (CommonFunc.Themeselect == "Theme 1")
         {
             ThemeChange();
         }
         setInitialFormsValidations();
         fillBarCode();
         // CommonFunc.WriteResourceFile(this);
         CommonFunc.SetCultureFromResource(this);
         setTabIndex();
     }
     catch (System.Exception ex)
     {
         CommonFunc.ShowMessage(ex.Message, MessageType.Information);
         Logger.Log(ex.Message, Logger.LogingLevel.Error);
     }
     finally
     {
     }
 }
        private void frmSupplier_Load(object sender, EventArgs e)
        {
            try
            {
                if (CommonFunc.Themeselect == "Theme 1")
                {
                    ThemeChange();
                }
                this.supplierActionButtons.btnSave.Click   += new System.EventHandler(btnSave_Click);
                this.supplierActionButtons.btnCancel.Click += new System.EventHandler(btnCancel_Click);
                this.supplierActionButtons.btnClear.Click  += new EventHandler(btnClear_Click);
                this.btnSearch.Click     += new EventHandler(btnSearch_Click);
                txtSupplierCode.KeyPress += new KeyPressEventHandler(txtValidateSpecialCharSpace);


                this.setInitialFormsValidations();

                this.areaCodeList = commonManager.GetAreaCodeList();

                var countryList = (from p in areaCodeList
                                   where p.AreaType == (int)MaterType.Country
                                   select new DropDownModel
                {
                    Code = p.AreaCode,
                    Description = p.Description
                }).ToList();

                masterTypeList = commonManager.GetMasterTypeList();
                var paymentModesList = (from m in masterTypeList
                                        where m.CodeType == MaterType.VendorPaymentTerms.ToString()
                                        select new DropDownModel {
                    Code = m.Code, Description = m.ShortDesc
                }).ToList();

                var shipmentModesList = (from m in masterTypeList
                                         where m.CodeType == MaterType.VendorShipmentType.ToString()
                                         select new DropDownModel {
                    Code = m.Code, Description = m.ShortDesc
                }).ToList();

                CommonFunc.PopulateComboBoxDataForWindowsForm(ref cboCountry, countryList);
                CommonFunc.PopulateComboBoxDataForWindowsForm(ref cboPaymentMethods, paymentModesList);
                CommonFunc.PopulateComboBoxDataForWindowsForm(ref cboShipmentMethod, shipmentModesList);
                clearForm();
                CommonFunc.SetCultureFromResource(this);
                //code added by roshan for issue id 2835
                label3.Text             = "Name";
                lblVatTinNo.Text        = "GSTNo.";
                lblVatTinDate.Visible   = false;
                lblCstTinNo.Visible     = false;
                lblCstTinDate.Visible   = false;
                lblTinNo.Visible        = false;
                lblServiceTaxNo.Visible = false;
                dtpVatTinDate.Visible   = false;
                dtpCstTinDate.Visible   = false;
                txtCstTinNo.Visible     = false;
                txtTinNo.Visible        = false;
                txtServiceTaxNo.Visible = false;
            }
            catch (System.Exception ex)
            {
                Logger.Log(ex, Logger.LogingLevel.Error);
                //MessageBox.Show(ex.Message);
            }
            finally
            {
            }
        }
Beispiel #8
0
        private void frmTax_Load(object sender, EventArgs e)
        {
            try
            {
                if (CommonFunc.Themeselect == "Theme 1")
                {
                    ThemeChange();
                }

                this.document = (from result in this.commonManager.GetDocumentType(CommonModel.SiteCode)
                                 select new DropDownModel
                {
                    Code = result.DocumentType,
                    Description = result.DocumentTypeDescription
                }).ToList();
                document.Insert(0, new DropDownModel {
                    Code = null, Description = "Select"
                });

                CommonFunc.PopulateComboBoxDataForWindowsForm(ref cmbDocumentType, this.document);

                this.AppliedOn = (from result in this.commonManager.GetAppliedOn(CommonModel.SiteCode)
                                  select new DropDownModel
                {
                    Code = result.LongDesc,
                    Description = result.LongDesc
                }).ToList();
                AppliedOn.Insert(0, new DropDownModel {
                    Code = null, Description = "Select"
                });

                CommonFunc.PopulateComboBoxDataForWindowsForm(ref cmbAppliedon, this.AppliedOn);


                //DataTable dt = new DataTable();
                //dt.Columns.Add("Code");
                //dt.Columns.Add("Description");
                //dt.Rows.Add("0", "Select");
                //dt.Rows.Add("MRP", "MRP");
                //dt.Rows.Add("NetAmount", "Net Amount");
                //dt.Rows.Add("GrossAmount", "Gross Amount");
                //CommonFunc.PopulateComboBoxDataForWindowsForm(ref cmbAppliedon, dt);

                this.TaxActionButton.btnSave.Click   += new System.EventHandler(btnSave_Click);
                this.TaxActionButton.btnCancel.Click += new System.EventHandler(btnCancel_Click);
                this.TaxActionButton.btnClear.Click  += new EventHandler(btnClear_Click);

                setInitialFormsValidations();

                Fillgrid();
                //CommonFunc.WriteResourceFile(this);
                CommonFunc.SetCultureFromResource(this);
                lblAppliedOn.MandatoryLabelText    = "*";
                lblAppliedOn.NormalLabelText       = "Applied On";
                lblTaxName.MandatoryLabelText      = "*";
                lblTaxValue.MandatoryLabelText     = "*";
                lblTaxValueType.MandatoryLabelText = "*";
                lbldocumenttype.MandatoryLabelText = "*";
                DefaultGridSetting();
            }
            catch (System.Exception ex)
            {
                CommonFunc.ShowMessage(ex.Message, MessageType.Information);
                Logger.Log(ex.Message, Logger.LogingLevel.Error);
            }
        }