예제 #1
0
        private void FrmInvoiceSetting_Load(object sender, EventArgs e)
        {
            txtInvoiceFormat.Text = AppInit.GetTextBoxApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_invoiceformate.ToString());
            txtChallanFormat.Text = AppInit.GetTextBoxApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_challanformat.ToString());
            cmbCopy.Text          = AppInit.GetTextBoxApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_DefaultCopyTag.ToString());

            chkInvoiceTaxOnTotalLevel.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_invoiceTaxonTotalLevel.ToString());
            chkItemHelp.Checked           = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_invoiceItemHelp.ToString());
            chkShippingDetails.Checked    = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_EnableShippingDetail.ToString());
            chlOtherAddField.Checked      = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_EnableOth1Add.ToString());
            chkPrintChallanEnable.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_EnablePrintChallan.ToString());


            chk_bf_freight.Checked    = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_Enable_bf_freight.ToString());
            chk_bf_additional.Checked = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_Enable_bf_additional.ToString());
            chk_bf_discount.Checked   = AppInit.GetCheckBoxOrRaddioApplicationSettings(AppInit.SoftwareSettings.SoftwareSettingCode.Inv_Enable_bf_discount.ToString());

            var lqry = dbx.BookMsts.ToList();

            foreach (var item in lqry)
            {
                int rowId = gvBook.Rows.Add();
                gvBook.Rows[rowId].Cells["BookId"].Value    = item.BookId;
                gvBook.Rows[rowId].Cells["BookName"].Value  = item.BookName;
                gvBook.Rows[rowId].Cells["BookTitle"].Value = item.BookTitle;
                gvBook.Rows[rowId].Cells["InvNo"].Value     = item.InvNo;
                gvBook.Rows[rowId].Cells["Prefix"].Value    = item.Prefix;

                gvBook.Rows[rowId].Cells["IsActive"].Value  = item.IsActive;
                gvBook.Rows[rowId].Cells["IsDefault"].Value = item.IsDefault;
            }
        }