private void frmComplaintNewEntry_Load(object sender, EventArgs e) { CommFun.m_sFuncName = BsfGlobal.GetFunctionalName("Flat"); label2.Text = CommFun.m_sFuncName + " No"; dtCompDate.EditValue = DateTime.Now; dtAttendDate.EditValue = DateTime.Now; GetVoucherNo(); GetData(); if (BsfGlobal.g_sUnPermissionMode == "H" || BsfGlobal.g_sUnPermissionMode == "D") { CheckPermission(); } if (BsfGlobal.FindPermission("Complaint-Entry-Modify") == false) { btnSave.Enabled = false; } else { btnSave.Enabled = true; } if (BsfGlobal.FindPermission("Complaint-Entry-Add") == false) { btnSave.Enabled = false; } else { btnSave.Enabled = true; } if (m_iComplaintId != 0) { FillData(); BsfGlobal.InsertUserUsage("Complaint-Entry-Modify", m_iComplaintId, BsfGlobal.g_sCRMDBName); } }
private void frmReceiptEntry_Load(object sender, EventArgs e) { CommFun.m_sFuncName = BsfGlobal.GetFunctionalName("Flat"); labelControl13.Text = CommFun.m_sFuncName + " No"; CommFun.SetMyGraphics(); dateReceipt.EditValue = DateTime.Now; dateCheque.EditValue = DateTime.Now; GetCostCentre(); GetVoucherNo(); FillPaymentMode(); if (m_sMode == "E" || m_sMode == "E1") { if (ReceiptId != 0) { FillData(); BsfGlobal.InsertUserUsage("Buyer-Receipt-Edit", ReceiptId, BsfGlobal.g_sCRMDBName); } } if (m_bView == true) { barButtonItem1.Visibility = BarItemVisibility.Never; barButtonItem2.Visibility = BarItemVisibility.Never; } else { barButtonItem1.Visibility = BarItemVisibility.Always; barButtonItem2.Visibility = BarItemVisibility.Always; } }
private void frmServiceOrderBill_Load(object sender, EventArgs e) { CommFun.m_sFuncName = BsfGlobal.GetFunctionalName("Flat"); lblContractor.Text = CommFun.m_sFuncName + " No"; dtpRefDate.EditValue = DateTime.Now; QualTrans = new DataTable(); QualTrans.Columns.Add("BillRegId", typeof(int)); QualTrans.Columns.Add("QualifierId", typeof(int)); QualTrans.Columns.Add("Expression", typeof(string)); QualTrans.Columns.Add("ExpPer", typeof(decimal)); QualTrans.Columns.Add("Add_Less_Flag", typeof(string)); QualTrans.Columns.Add("SurCharge", typeof(decimal)); QualTrans.Columns.Add("EDCess", typeof(decimal)); QualTrans.Columns.Add("ExpValue", typeof(decimal)); QualTrans.Columns.Add("ExpPerValue", typeof(decimal)); QualTrans.Columns.Add("SurValue", typeof(decimal)); QualTrans.Columns.Add("EDValue", typeof(decimal)); QualTrans.Columns.Add("Amount", typeof(decimal)); GetVoucherNo(); GetData(); AddNewEntry(); if (BsfGlobal.g_sUnPermissionMode == "H" || BsfGlobal.g_sUnPermissionMode == "D") { CheckPermission(); } if (BsfGlobal.FindPermission("CRM-ServiceBill-Edit") == false) { barButtonItemOk.Enabled = false; } else { barButtonItemOk.Enabled = true; } if (BsfGlobal.FindPermission("CRM-ServiceBill-Add") == false) { barButtonItemOk.Enabled = false; } else { barButtonItemOk.Enabled = true; } if (m_iRegBillId != 0) { FillData(); BsfGlobal.InsertUserUsage("CRM-ServiceBill-Edit", m_iRegBillId, BsfGlobal.g_sCRMDBName); } ResumeLayout(); }
private void frmTenantEntry_Load(object sender, EventArgs e) { CommFun.m_sFuncName = BsfGlobal.GetFunctionalName("Flat"); label15.Text = CommFun.m_sFuncName + " No"; bStatus = true; dtCompDate.EditValue = DateTime.Now; GetVoucherNo(); Getdatalist(); if (BsfGlobal.g_sUnPermissionMode == "H" || BsfGlobal.g_sUnPermissionMode == "D") { CheckPermission(); } if (BsfGlobal.FindPermission("Tenant-Edit") == false) { btnSave.Enabled = false; } else { btnSave.Enabled = true; } if (BsfGlobal.FindPermission("Tenant-Add") == false) { btnSave.Enabled = false; } else { btnSave.Enabled = true; } if (m_iTenantId != 0) { FillData(); BsfGlobal.InsertUserUsage("Tenant-Edit", m_iTenantId, BsfGlobal.g_sCRMDBName); } }