private void InitializeControls() { try { MItem_ID.Text = "0"; UOM_ID.SelectedIndex = 0; Item_Code.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, 0, "Item", "IC", "IC", "No"); HSNCode.Text = ""; Item_Type.SelectedIndex = 0; Item_Name.Text = ""; Item_Selling_Rate.Text = "0"; Item_Purchase_Rate.Text = "0"; Item_Desc.Text = ""; Item_Tax_GST_Effective_From.Text = "01-Jul-2017"; Item_CGST_Rate.Text = "0"; Item_SGST_Rate.Text = "0"; Item_IGST_Rate.Text = "0"; Item_Tax_GST_ID.SelectedIndex = 0; Item_CESS_Rate.Text = "0"; MDBSC_RowStatus.SelectedIndex = 0; MDBSC_RowCreatedByUserName.Text = SessionUserData.UserData.UserName; MDBSC_RowCreatedOn_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeControls() { try { Txt_FromDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(SessionUserData.Company.AccountingStartDate)); Txt_ToDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); AVPHDR_ID.Text = "0"; VP_No.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, SessionUserData.Company.YearID, "Vendor Payment", "VP", "VP", "Yes"); VP_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); Fk_VendorID.SelectedIndex = 0; VP_Received_Amt.Text = "0"; VP_Adjusted_Amt.Text = "0"; VP_OnAccount_Amt.Text = "0"; VP_Payment_Mode.SelectedIndex = 0; VP_Ref_No.Text = ""; VP_Ref_DT.Text = ""; VP_Narration.Text = ""; gv_VP_Inv.DataSource = null; gv_VP_Inv.DataBind(); Msg_RCNT.Text = " No Records Found"; } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeControls_HDR() { try { Txt_FromDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(SessionUserData.Company.AccountingStartDate)); Txt_ToDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); Inv_Txt_FromDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(SessionUserData.Company.AccountingStartDate)); Inv_Txt_ToDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); DCNCHDR_ID.Text = "0"; Fk_INVHDR_ID.Text = "0"; Msg_ErrorMsg.Text = ""; SINV_Taxtype.Text = ""; MCust_Name.Text = ""; SINV_No.Text = ""; vSINV_DT.Text = ""; SINV_HDR_Total_Gross_Amt.Text = "0"; DCNC_Reason.SelectedIndex = 0; DCNC_Type.Text = ""; DCNC_No.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, SessionUserData.Company.YearID, "DCN", "DCN", "DCN", "Yes"); DCNC_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); DCNC_ShippTo_State_ID.SelectedIndex = 0; SINV_ShippedFrom_State_ID.SelectedIndex = 0; SINV_ShippedFrom_State_ID.Enabled = false; DCNC_Remark.Text = ""; MDBSC_RowStatus.Text = ""; MDBSC_RowCreatedByUserName.Text = SessionUserData.UserData.UserName; MDBSC_RowCreatedOn_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); DCNC_HDR_BasicAmt.Text = "0.00"; DCNC_HDR_DiscountAmt.Text = "0.00"; DCNC_HDR_Net_Amt.Text = "0.00"; DCNC_HDR_Freight_Charges.Text = "0.00"; DCNC_HDR_CGST_Amt.Text = "0.00"; DCNC_HDR_SGST_Amt.Text = "0.00"; DCNC_HDR_IGST_Amt.Text = "0.00"; DCNC_HDR_CESS_Amt.Text = "0.00"; DCNC_HDR_Gross_Amt.Text = "0.00"; DCNC_HDR_Round_Off_Amt.Text = "0.00"; DCNC_HDR_Total_Gross_Amt.Text = "0.00"; DCNC_HDR_Total_Tax_Amt.Text = "0.00"; TaxType_Toggel(); gvdtl.DataSource = null; gvdtl.DataBind(); } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeControls_HDR() { try { Txt_FromDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(SessionUserData.Company.AccountingStartDate)); Txt_ToDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); SPIHDR_ID.Text = "0"; Fk_CustomerID.SelectedIndex = 0; Msg_ErrorMsg.Text = ""; SPI_Taxtype.Text = ""; SPI_No.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, SessionUserData.Company.YearID, "Proforma Invoice", "SPI", "SPI", "Yes"); SPI_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); SPI_CreditDays.Text = "30"; SPI_DueDT.Text = ""; SPI_PONo.Text = ""; SPI_PO_DT.Text = ""; SPI_Remark.Text = ""; MDBSC_RowStatus.Text = ""; MDBSC_RowCreatedByUserName.Text = SessionUserData.UserData.UserName; MDBSC_RowCreatedOn_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); SPI_HDR_BasicAmt.Text = "0.00"; SPI_HDR_DiscountAmt.Text = "0.00"; SPI_HDR_Net_Amt.Text = "0.00"; SPI_HDR_Freight_Charges.Text = "0.00"; SPI_HDR_CGST_Amt.Text = "0.00"; SPI_HDR_SGST_Amt.Text = "0.00"; SPI_HDR_IGST_Amt.Text = "0.00"; SPI_HDR_CESS_Amt.Text = "0.00"; SPI_HDR_Gross_Amt.Text = "0.00"; SPI_HDR_Round_Off_Amt.Text = "0.00"; SPI_HDR_Total_Gross_Amt.Text = "0.00"; SPI_HDR_Total_Tax_Amt.Text = "0.00"; SPI_CreditDays.Text = "0"; SPI_ShippedFrom_State_ID.SelectedIndex = 0; MCust_Reg_StateDisplayName.Text = ""; SPI_ShippTo_State_ID.SelectedIndex = 0; SPI_BillTo_Add1.Text = ""; SPI_BillTo_Add2.Text = ""; SPI_BillTo_Add3.Text = ""; SPI_BillTo_Pincode.Text = ""; SPI_BillTo_City.Text = ""; SPI_BillTo_Country.Text = ""; SPI_BillTo_GSTNo.Text = ""; SPI_BillTo_PANNO.Text = ""; SPI_ShippTo_CompanyName.Text = ""; SPI_ShippTo_ContactPersone.Text = ""; SPI_ShippTo_CP_MobileNo.Text = ""; SPI_ShippTo_Add1.Text = ""; SPI_ShippTo_Add2.Text = ""; SPI_ShippTo_Add3.Text = ""; SPI_ShippTo_Pincode.Text = ""; SPI_ShippTo_City.Text = ""; SPI_ShippTo_Country.Text = ""; SPI_ShippTo_GSTNo.Text = ""; SPI_ShippTo_PANNO.Text = ""; TaxType_Toggel(); gvdtl.DataSource = null; gvdtl.DataBind(); } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeControls() { try { M_Ven_ID.Text = "0"; MVen_RegType.SelectedIndex = 0; MVen_Code.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, 0, "Vendor", "VEN", "VEN", "No"); MVen_Name.Text = ""; MVen_Reg_Add1.Text = ""; MVen_Reg_Add2.Text = ""; MVen_Reg_Add3.Text = ""; MVen_BankName.Text = ""; MVen_AccountHolderName.Text = ""; MVen_CreditDays.Text = "30"; MVen_IFSCNo.Text = ""; MVen_AccountNo.Text = ""; MVen_BankBranch.Text = ""; MDBSC_RowStatus.SelectedIndex = 0; RecCreatedOn.Text = ""; RecCreatedUser.Text = ""; MVen_Primary_Contact_Designation.Text = ""; MVen_Primary_Contact_Person.Text = ""; MVen_Primary_CP_MobileNo.Text = ""; MVen_Primary_CP_EmailID.Text = ""; MVen_Primary_CP_PhoneNo.Text = ""; MVen_Contact_Email_Admin.Text = ""; MVen_Contact_FaxNo.Text = ""; MVen_Contact_OfficeNo2.Text = ""; MVen_Contact_OfficeNo1.Text = ""; MVen_Contact_Website.Text = ""; MVen_Reg_Country.Text = "India"; MVen_Reg_State_ID.SelectedIndex = 0; MVen_Reg_City.Text = ""; MVen_Reg_Pincode.Text = ""; MVen_BL_PANNO.Text = ""; MVen_TradeName.Text = ""; MVen_DispatchFrom_State_ID.SelectedIndex = 0; MVen_DispatchFrom_CompanyName.Text = ""; MVen_DispatchFrom_ContactPerson.Text = ""; MVen_DispatchFrom_CP_MobileNo.Text = ""; MVen_DispatchFrom_Add1.Text = ""; MVen_DispatchFrom_Add2.Text = ""; MVen_DispatchFrom_Add3.Text = ""; MVen_DispatchFrom_Pincode.Text = ""; MVen_DispatchFrom_City.Text = ""; MVen_DispatchFrom_Country.Text = ""; MVen_DispatchFrom_PANNO.Text = ""; MVen_DispatchFrom_GSTNO.Text = ""; MVen_DispatchFrom_ARNO.Text = ""; MVen_BL_GSTNO.Text = ""; RecCreatedOn.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); RecCreatedUser.Text = SessionUserData.UserData.UserName; } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeControls() { try { M_Cust_ID.Text = "0"; MCust_Code.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, 0, "Customer", "CUST", "CUST", "No"); MCust_Name.Text = ""; MCust_Reg_Add1.Text = ""; MCust_Reg_Add2.Text = ""; MCust_Reg_Add3.Text = ""; MCust_RegType.SelectedIndex = 0; MCust_CreditDays.Text = "30"; RecCreatedOn.Text = ""; RecCreatedUser.Text = ""; MCust_Primary_Contact_Designation.Text = ""; MCust_Primary_Contact_Person.Text = ""; MCust_Primary_CP_MobileNo.Text = ""; MCust_Primary_CP_EmailID.Text = ""; MCust_Primary_CP_PhoneNo.Text = ""; MCust_Contact_Email_Admin.Text = ""; MCust_Contact_FaxNo.Text = ""; MCust_Contact_OfficeNo2.Text = ""; MCust_Contact_OfficeNo1.Text = ""; MCust_Contact_Website.Text = ""; MCust_Reg_Country.Text = "India"; MCust_Reg_State_ID.SelectedIndex = 0; MCust_Reg_City.Text = ""; MCust_Reg_Pincode.Text = ""; MCust_BL_PANNO.Text = ""; MCust_TradeName.Text = ""; MCust_ShippTo_State_ID.SelectedIndex = 0; MCust_ShippTo_CompanyName.Text = ""; MCust_ShippTo_ContactPerson.Text = ""; MCust_ShippTo_CP_MobileNo.Text = ""; MCust_ShippTo_Add1.Text = ""; MCust_ShippTo_Add2.Text = ""; MCust_ShippTo_Add3.Text = ""; MCust_ShippTo_Pincode.Text = ""; MCust_ShippTo_City.Text = ""; MCust_ShippTo_Country.Text = ""; MCust_ShippTo_PANNO.Text = ""; MCust_ShippTo_GSTNO.Text = ""; MCust_ShippTo_ARNO.Text = ""; MCust_BL_GSTNO.Text = ""; RecCreatedOn.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); RecCreatedUser.Text = SessionUserData.UserData.UserName; } catch (Exception ex) { throw new Exception(ex.Message); } }
private void InitializeControls_HDR() { try { Txt_FromDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(SessionUserData.Company.AccountingStartDate)); Txt_ToDT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); DCHDR_ID.Text = "0"; Fk_CustomerID.SelectedIndex = 0; Msg_ErrorMsg.Text = ""; DC_No.Text = MEF.GetRefNo(SessionUserData.Company.CompanyID, SessionUserData.Company.BranchID, SessionUserData.Company.YearID, "Delivery Challan", "DC", "DC", "Yes"); DC_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); DC_Remark.Text = ""; MDBSC_RowStatus.Text = ""; MDBSC_RowCreatedByUserName.Text = SessionUserData.UserData.UserName; MDBSC_RowCreatedOn_DT.Text = DateHelper.ConvertToDataBase(DateHelper.ConvertToForm(DateTime.Now)); DC_HDR_BasicAmt.Text = "0.00"; DC_HDR_DiscountAmt.Text = "0.00"; DC_HDR_Freight_Charges.Text = "0.00"; DC_HDR_Gross_Amt.Text = "0.00"; DC_HDR_Round_Off_Amt.Text = "0.00"; DC_HDR_Total_Gross_Amt.Text = "0.00"; DC_ShippedFrom_State_ID.SelectedIndex = 0; MCust_Reg_StateDisplayName.Text = ""; DC_ShippTo_State_ID.SelectedIndex = 0; DC_BillTo_Add1.Text = ""; DC_BillTo_Add2.Text = ""; DC_BillTo_Add3.Text = ""; DC_BillTo_Pincode.Text = ""; DC_BillTo_City.Text = ""; DC_BillTo_Country.Text = ""; DC_BillTo_GSTNo.Text = ""; DC_BillTo_PANNO.Text = ""; DC_ShippTo_CompanyName.Text = ""; DC_ShippTo_ContactPersone.Text = ""; DC_ShippTo_CP_MobileNo.Text = ""; DC_ShippTo_Add1.Text = ""; DC_ShippTo_Add2.Text = ""; DC_ShippTo_Add3.Text = ""; DC_ShippTo_Pincode.Text = ""; DC_ShippTo_City.Text = ""; DC_ShippTo_Country.Text = ""; DC_ShippTo_GSTNo.Text = ""; DC_ShippTo_PANNO.Text = ""; gvdtl.DataSource = null; gvdtl.DataBind(); } catch (Exception ex) { throw new Exception(ex.Message); } }