protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblmsg1.Visible = false; lblmsg2.Visible = false; userPermission = Converter.GetInteger(SessionStore.GetValue(Params.SYS_USER_PERMISSION)); //if (userPermission != 20) //{ // string notifyMsg = "?txtOne=" + Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)) + // "&txtTwo=" + "You Don't Have Permission for Verify" + // "&txtThree=" + "Contact Your Super User" + "&PreviousMenu=A2ZERPModule.aspx"; // Server.Transfer("Notify.aspx" + notifyMsg); //} //else { string CheckQuery = "SELECT CuType,CuTypeName,CuNo,CuName,CuOpDt,CuProcDesc FROM A2ZCUAPPLICATION Where CuProcFlag = '11' OR CuProcFlag = '21' OR CuProcFlag = '31' and CuStatus !='99'"; DataTable dt = new DataTable(); dt = CommonManager.Instance.GetDataTableByQuery(CheckQuery, "A2ZCSMCUS"); if (dt.Rows.Count <= 0) { string notifyMsg = "?txtOne=" + Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)) + "&txtTwo=" + "No Record Found for Verify" + "&txtThree=" + "Contact For Record" + "&PreviousMenu=A2ZERPModule.aspx"; Server.Transfer("Notify.aspx" + notifyMsg); } gvVerify(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblIDName.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); A2ZHRPARAMETERDTO dto = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); hdnPeriod.Value = Converter.GetString(dt); int Month = dt.Month; int Year = dt.Year; ddlPeriodMM.SelectedValue = Converter.GetString(Month); ddlPeriodYYYY.SelectedValue = Converter.GetString(Year); hdnMonth.Value = Converter.GetString(Month); hdnYear.Value = Converter.GetString(Year); ChkAllEmp.Checked = false; ddlEmp.Enabled = true; txtEmpID.Enabled = true; ChkAllEmp.Visible = false; Empdropdown(); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { //lblTotalAmt.Visible = false; hdnID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); hdnCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); var dt = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime processDate = dt.ProcessDate; string date = processDate.ToString("dd/MM/yyyy"); CtrlProcDate.Text = date; txtToDaysDate.Text = Converter.GetString(String.Format("{0:Y}", processDate)); lblVchNo.Visible = false; txtVchNo.Visible = false; } } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.Page_Load Problem');</script>"); //throw ex; } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { gvCodeDetailInfo.Visible = false; lblmsg1.Visible = false; lblmsg2.Visible = false; userPermission = Converter.GetInteger(SessionStore.GetValue(Params.SYS_USER_PERMISSION)); var dt = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime processDate = dt.ProcessDate; hdnPeriod.Text = Converter.GetString(processDate); txtToDaysDate.Text = Converter.GetString(String.Format("{0:Y}", processDate)); lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); } } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.Page_Load Problem');</script>"); //throw ex; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); lblProcesDate.Text = date; CodeDropdown(); PartyDropdown(); TruncateWF(); CalculateAvgRate(); DivStockView.Visible = false; btnBack.Visible = false; ddlFromLocation.SelectedValue = "2"; ddlToLocation.SelectedValue = "1"; divPost.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblModule.Text = Request.QueryString["a%b"]; A2ZRECCTRLDTO getDTO = (A2ZRECCTRLDTO.ReadLastRecords(6)); lblLastAppNo.Text = Converter.GetString(getDTO.CtrlRecLastNo); txtLoanAppNo.Focus(); BtnUpdate.Visible = false; ddlAccType.Enabled = false; LoanPurposeDdl(); hdnID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); //TruncateWF(); Hideinfo(); MemberDropdown(); AccTypedropdown(); } else { } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); txtProcessDate.Text = date; lblProcDate.Text = date; A2ZHRPARAMETERDTO dto0 = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime dt0 = Converter.GetDateTime(dto0.ProcessDate); hdnToDaysDate.Text = Converter.GetString(String.Format("{0:Y}", dt0)); lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); string qry = "SELECT GLAccDesc FROM A2ZCGLMST where GLAccNo='" + lblCashCode.Text + "'"; DataTable dt1 = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery(qry, "A2ZGLMCUS"); if (dt1.Rows.Count > 0) { lblBoothNo.Text = lblCashCode.Text; lblBoothName.Text = Converter.GetString(dt1.Rows[0]["GLAccDesc"]); } lblProcessDate.Visible = false; txtProcessDate.Visible = false; lblVchNo.Visible = false; txtVchNo.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); BtnAutoReverse.Visible = false; BtnAutoPost.Visible = true; txtEmpNo.Focus(); gvBenefitInfo.Visible = false; gvDeductionInfo.Visible = false; A2ZCSPARAMETERDTO dto2 = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt2 = Converter.GetDateTime(dto2.ProcessDate); string date1 = dt2.ToString("dd/MM/yyyy"); CtrlProcDate.Text = date1; //DivAllowance.Visible = false; //divDeduction.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblLedgerBalance.Visible = false; txtPayableAmt.Visible = false; lblVatBalance.Visible = false; txtPayableVATAmt.Visible = false; lblTaxBalance.Visible = false; txtPayableTAXAmt.Visible = false; lblGLBankCode.Visible = false; txtGLBankCode.Visible = false; ddlGLBankCode.Visible = false; lblChqNo.Visible = false; txtChqNo.Visible = false; lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblIDName.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); SupplierDropdown(); string qry = "SELECT GLAccDesc FROM A2ZCGLMST where GLAccNo='" + lblCashCode.Text + "'"; DataTable dt1 = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery(qry, "A2ZGLMCUS"); if (dt1.Rows.Count > 0) { lblCashCodeName.Text = Converter.GetString(dt1.Rows[0]["GLAccDesc"]); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { userPermission = Converter.GetInteger(SessionStore.GetValue(Params.SYS_USER_PERMISSION)); if (userPermission == 30) { string notifyMsg = "?txtOne=" + Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)) + "&txtTwo=" + "You Don't Have Permission for Approved" + "&txtThree=" + "Contact Your Super User" + "&PreviousMenu=A2ZERPModule.aspx"; Server.Transfer("Notify.aspx" + notifyMsg); } else { DivisionDropdown(); CreditUnionDropdown(); txtCreditUNo.Focus(); BtnCreUnionUpdate.Visible = false; DistrictInFo(); ThanaInfo(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); CtrlProcDate.Text = date; AccTypeDropdown(); CurrencyDropdown(); lblChequeNo.Visible = false; txtChequeNo.Visible = false; lblAccountName.Visible = false; ddlAccountName.Visible = false; ddlAccNo.Visible = false; DivReInput.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); if (lblID.Text == string.Empty || lblID.Text == "0") { Response.Redirect("A2ZLogin.aspx"); } lblIDName.Text = "Login AS: " + DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); lblProcessDate.Text = Converter.GetString(dto.ProcessDate.ToLongDateString()); PurchasePartyDropdown(); SalesPartyDropdown(); lblPurchaseParty.Visible = false; DivPurchaseParty.Visible = false; lblSalesParty.Visible = false; DivSalesParty.Visible = false; ddlPurchasePartyName.Enabled = false; ddlSalesPartyName.Enabled = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { hdnPrmValue.Text = Request.QueryString["a%b"]; string b = hdnPrmValue.Text; HdnModule.Text = b; A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); CtrlTrnDate.Text = date; hdnID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); txtVoucherNo.Focus(); btnDelete.Visible = false; btnCancel.Visible = false; ValidityFlag.Text = "0"; DivExit.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { TextBox username = new TextBox(); DivParty.Visible = false; DivPurchase.Visible = false; DivTransit.Visible = false; DivReceive.Visible = false; DivSale.Visible = false; DivReports.Visible = false; lblCompanyName.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.COMPANY_NAME)); lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblIDName.Text = "Login as : " + DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); lblProcessDate.Text = Converter.GetString(dto.ProcessDate.ToLongDateString()); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblIDName.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); string qry = "SELECT GLAccDesc FROM A2ZCGLMST where GLAccNo='" + lblCashCode.Text + "'"; DataTable dt1 = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery(qry, "A2ZGLMCUS"); if (dt1.Rows.Count > 0) { lblBoothNo.Text = lblCashCode.Text; lblBoothName.Text = Converter.GetString(dt1.Rows[0]["GLAccDesc"]); } GroupDropdown(); UnitDropdown(); GLBankCodeDropdown(); FromWareHouseDropdown(); ddlFromWarehouse.SelectedValue = Converter.GetString(lblCashCode.Text); TrancateWFTRN(); lblGLBankCode.Visible = false; txtGLBankCode.Visible = false; ddlGLBankCode.Visible = false; lblChqNo.Visible = false; txtChqNo.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { hdnID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); //lblModule.Text = Request.QueryString["a%b"]; string Voucher = (string)Session["VouNo"]; string module = (string)Session["Module"]; txtVoucherNo.Text = Voucher; lblModule.Text = module; DataTable dt = new DataTable(); dt = DataAccessLayer.BLL.CommonManager.Instance.GetDataTableByQuery("SELECT TrnDate FROM dbo.A2ZTRANSACTION WHERE VchNo = '" + txtVoucherNo.Text + "' AND TrnCSGL=1", "A2ZCSMCUS"); if (dt.Rows.Count > 0) { A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dte = Converter.GetDateTime(dto.ProcessDate); string date = dte.ToString("dd/MM/yyyy"); txtTranDate.Text = date; } gvDetail(); SumValue(); } } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.Page_Load Problem');</script>"); //throw ex; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); divPost.Visible = false; A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); lblProcesDate.Text = date; txtDueDate.Text = date; ddlCode.Enabled = false; ddlKarat.Enabled = false; ddlLocation.SelectedValue = "2"; ddlLocation.Enabled = false; CodeDropdown(); PartyDropdown(); CurrencyDropdown(); ddlCurrency.SelectedIndex = 1; ConvertCurrencyDropdown(); CalculateBalWeight(); TruncateWF(); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblIDName.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt1 = Converter.GetDateTime(dto.ProcessDate); string date = dt1.ToString("dd/MM/yyyy"); lblProcDate.Text = Converter.GetString(date); LoadReceiveGridSpooler(); FactoryPartyDropdown(); dvJpgTable.Visible = false; } } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.Page_Load Problem');</script>"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DivWeightView.Visible = false; lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); if (lblID.Text == string.Empty || lblID.Text == "0") { Response.Redirect("A2ZLogin.aspx"); } lblIDName.Text = "Login AS: " + DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); lblProcessDate.Text = date; SalePartyDropdown(); TrackingPartyDropdown(); //KaratDropdown(); CalculateBalance(); TruncateWF(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); if (lblID.Text == string.Empty || lblID.Text == "0") { Response.Redirect("A2ZLogin.aspx"); } lblIDName.Text = "Login AS: " + DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); lblProcessDate.Text = date; LocationDropdown(); PartyDropdown(); ddlLocation.SelectedIndex = 1; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); string PFlag = (string)Session["ProgFlag"]; CtrlProgFlag.Text = PFlag; if (CtrlProgFlag.Text != "1") { A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); CtrlProcDate.Text = date; txtFromDate.Text = date; txtToDate.Text = date; } else { string RtxtFromDate = (string)Session["StxtFromDate"]; string RtxtToDate = (string)Session["StxtToDate"]; txtFromDate.Text = RtxtFromDate; txtToDate.Text = RtxtToDate; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //lblTotalAmt.Visible = false; gvDetailInfoFDR.Visible = false; hdnID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); hdnCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); var dt = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime processDate = dt.ProcessDate; txtToDaysDate.Text = Converter.GetString(String.Format("{0:Y}", processDate)); int lastDay = DateTime.DaysInMonth(processDate.Year, processDate.Month); var A = new DateTime(processDate.Year, processDate.Month, lastDay); hdnSalDate.Text = Converter.GetString(A); hdnNoDays.Text = Converter.GetString(lastDay); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { ddlAccountType(); BtnCalculate.Visible = false; BtnPrint.Visible = false; lblVchNo.Visible = false; txtVchNo.Visible = false; BtnPost.Visible = false; BtnReverse.Visible = false; BtnExit.Visible = true; lblTotalAmt.Visible = false; hdnID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); hdnCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); lblPdate.Text = date; } } catch (Exception ex) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.Page_Load Problem');</script>"); //throw ex; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblID.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); WarehouseDropdown(); GroupDropdown(); A2ZCSPARAMETERDTO dto = A2ZCSPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); int Month = dt.Month; int Year = dt.Year; ddlPeriodMM.SelectedValue = Converter.GetString(Month); ddlPeriodYYYY.SelectedValue = Converter.GetString(Year); hdnToDaysDate.Text = Converter.GetString(String.Format("{0:Y}", dt)); //txtfdate.Text = Converter.GetString(date); //txttdate.Text = Converter.GetString(date); A2ZSYSIDSDTO sysobj = A2ZSYSIDSDTO.GetUserInformation(Converter.GetInteger(lblID.Text), "A2ZHKMCUS"); if (sysobj.IdsCWarehouseflag == false) { lblCWarehouseflag.Text = "0"; } else { lblCWarehouseflag.Text = "1"; } if (lblCWarehouseflag.Text == "0") { ddlWarehouse.Enabled = false; txtWarehouse.Enabled = false; chkWarehouse.Visible = false; chkWarehouse.Checked = false; txtWarehouse.Text = Converter.GetString(lblCashCode.Text); ddlWarehouse.SelectedValue = Converter.GetString(lblCashCode.Text); } else { ddlWarehouse.Enabled = false; txtWarehouse.Enabled = false; chkWarehouse.Visible = true; chkWarehouse.Checked = true; txtWarehouse.Text = string.Empty; ddlWarehouse.SelectedIndex = 0; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { hdnID.Value = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); txtName.Focus(); BtnUpdate.Visible = false; BtnDelete.Visible = false; DivisionDropdown(); DistrictInFo(); UpzilaInfo(); ThanaInfo(); string cuType = (string)Session["CUType"]; lblCuType.Text = cuType; string cuno = (string)Session["CUNo"]; lblCuNo.Text = cuno; string memno = (string)Session["MemNo"]; lblmemno.Text = memno; string acno = (string)Session["AccNo"]; lblAccNo.Text = acno; string acctype = (string)Session["TypeCode"]; lblType.Text = acctype; HoldPerc.Text = "0"; gvDetail(); gvTotalPer(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblmsg1.Visible = false; lblmsg2.Visible = false; userPermission = Converter.GetInteger(SessionStore.GetValue(Params.SYS_USER_PERMISSION)); //if (userPermission != 20) //{ // string notifyMsg = "?txtOne=" + Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)) + // "&txtTwo=" + "You Don't Have Permission for Verify" + // "&txtThree=" + "Contact Your Super User" + "&PreviousMenu=A2ZERPModule.aspx"; // Server.Transfer("Notify.aspx" + notifyMsg); //} //else { string CheckQuery = "SELECT lTrim(str(dbo.A2ZACCOUNT.CuType)+lTrim(str(dbo.A2ZACCOUNT.CuNo))) As CuNo,dbo.A2ZACCOUNT.MemNo,dbo.A2ZMEMBER.MemName,dbo.A2ZACCOUNT.AccNo FROM A2ZACCOUNT INNER JOIN dbo.A2ZMEMBER ON dbo.A2ZACCOUNT.CuType = dbo.A2ZMEMBER.CuType AND dbo.A2ZACCOUNT.CuNo = dbo.A2ZMEMBER.CuNo AND dbo.A2ZACCOUNT.MemNo = dbo.A2ZMEMBER.MemNo Where AccStatus=91"; DataTable dt = new DataTable(); dt = CommonManager.Instance.GetDataTableByQuery(CheckQuery, "A2ZCSMCUS"); if (dt.Rows.Count <= 0) { string notifyMsg = "?txtOne=" + Converter.GetString(SessionStore.GetValue(Params.SYS_USER_NAME)) + "&txtTwo=" + "No Record Found for Verify" + "&txtThree=" + "Contact For Record" + "&PreviousMenu=A2ZERPModule.aspx"; Server.Transfer("Notify.aspx" + notifyMsg); } gvVerify(); } } }
protected void BtnPost_Click(object sender, EventArgs e) { btnUpdate_Click(null, null); double netPay = Converter.GetDouble(txtNetPay.Text); if (netPay < 0) { ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Settelement Not Allowed');", true); return; } if (txtVchNo.Text == "") { ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Please Input Voucher No.');", true); return; } var prm = new object[5]; prm[0] = txtEmpNo.Text; prm[1] = txtVchNo.Text; prm[2] = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_ID)); prm[3] = 0; prm[4] = lblCashCode.Text; int result = Converter.GetInteger(DataAccessLayer.BLL.CommonManager.Instance.GetScalarValueBySp("Sp_HREmployeeSettlementPost", prm, "A2ZHRMCUS")); if (result == 0) { txtEmpNo.Text = string.Empty; lblName.Text = string.Empty; lblDesign.Text = string.Empty; lblGrade.Text = string.Empty; txtVchNo.Text = string.Empty; lblTotalBenefit.Visible = false; txtTotalBenefit.Visible = false; lblTotalDeduction.Visible = false; txtTotalDeduction.Visible = false; lblNetPay.Visible = false; txtNetPay.Visible = false; gvBenefitInfo.Visible = false; gvDeductionInfo.Visible = false; BtnAutoReverse.Visible = false; BtnAutoPost.Visible = true; txtEmpNo.Focus(); ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Posting Done');", true); return; } ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Problem In Posting');", true); return; }
protected void btnAdd_Click(object sender, EventArgs e) { try { string idName = string.Empty; Int32 EmpCode = 0; int noOfRowEffected = 0; //if (ddlIdLevel.SelectedIndex == 4) //{ // idName = txtManagment.Text.Trim(); //} //else //{ idName = ddlPerNo.SelectedItem.Text; //} A2ZSYSIDSDTO dto = new A2ZSYSIDSDTO(); dto.IdsNo = Converter.GetInteger(txtIdNo.Text); dto.EmpCode = Converter.GetSmallInteger(ddlPerNo.SelectedValue); dto.IdsName = lblIdsName.Text; dto.IdsLevel = Converter.GetSmallInteger(ddlIdLevel.SelectedValue); //dto.IdsFlag = Converter.GetSmallInteger(ddlPermission.SelectedValue); dto.UserId = Converter.GetInteger(SessionStore.GetValue(Params.SYS_USER_ID)); dto.GLCashCode = Converter.GetInteger(txtGlCashCode.Text); dto.SODflag = Converter.GetBoolean(ChkSODflag.Checked); dto.VPrintflag = Converter.GetBoolean(ChkVPrintflag.Checked); dto.IdsCWarehouseflag = Converter.GetBoolean(ChkCWarehouse.Checked); noOfRowEffected = A2ZSYSIDSDTO.InsertNewIdInformation(dto); if (noOfRowEffected > 0) { UpdateMSG(); //ShowMessage("Data has been saved successfully.", Color.Green); ClearInformation(); } else { NotUpdateMSG(); //ShowMessage("Sorry!!Data has not been saved.", Color.Red); } } catch (Exception) { Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "<script>alert('System Error.Add Problem');</script>"); //throw; } }
protected void AddAuditInformation() { Int16 moduleNo = 0; Enums.ModuleConstant masterPage = Enums.ModuleConstant.HouseKeeping; if (SessionStore.ContainsKey(Params.SYS_SELECT_MODULE)) //if (Session["LoadSelectedModule"] != null) { masterPage = (Enums.ModuleConstant)SessionStore.GetValue(Params.SYS_SELECT_MODULE); //Session["LoadSelectedModule"].ToString(); } switch (masterPage) { case Enums.ModuleConstant.AccountsService: moduleNo = 1; break; case Enums.ModuleConstant.GeneralLedger: moduleNo = 2; break; case Enums.ModuleConstant.HouseKeeping: moduleNo = 2; break; case Enums.ModuleConstant.Booth: moduleNo = 3; break; //case Enums.ModuleConstant.HumanResource: // moduleNo = 3; // break; //case Enums.ModuleConstant.Inventory: // moduleNo = 4; // break; //case Enums.ModuleConstant.OffBooth: // moduleNo = 7; // break; default: moduleNo = 1; break; } var dto = new A2ZAUDITDTO(); dto.UserId = Converter.GetInteger(SessionStore.GetValue(Params.SYS_USER_ID)); dto.EmpCode = Converter.GetSmallInteger(SessionStore.GetValue(Params.SYS_USER_EMP_CODE)); dto.UserIP = Converter.GetString(SessionStore.GetValue(Params.SYS_USER_IP)); dto.UserServerIP = Converter.GetString(SessionStore.GetValue(Params.SYS_USER_SERVER_IP)); dto.UserServerName = Converter.GetString(SessionStore.GetValue(Params.SYS_USER_SERVER_NAME)); //dto.AudRecordNo = 1; //dto.ModuleNo = moduleNo; //dto.AudRemarks = "Log In"; //dto.AudProcessDate = DateTime.Now.Date; //dto.AudOldDate = DateTime.Now.Date; //dto.AudNewDate = DateTime.Now.Date; //A2ZAUDITDTO.InsertAuditInformation(dto); }