protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtEmpNo.Focus(); DivAllowance.Visible = false; divDeduction.Visible = false; var dt = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime processDate = dt.ProcessDate; hdnPeriod.Text = Converter.GetString(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); int Month = processDate.Month; int Year = processDate.Year; hdnMonth.Text = Converter.GetString(Month); hdnYear.Text = Converter.GetString(Year); } }
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) { if (!IsPostBack) { Bankdropdown(); Areadropdown(); Locationdropdown(); ChkAllArea.Visible = true; ddlArea.Enabled = false; lblArea.Enabled = false; ChkAllLocation.Visible = true; ddlLocation.Enabled = false; lblLocation.Enabled = false; A2ZHRPARAMETERDTO dto = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); hdnPeriod.Text = Converter.GetString(dt); int Month = dt.Month; int Year = dt.Year; ddlPeriodMM.SelectedValue = Converter.GetString(Month); ddlPeriodYYYY.SelectedValue = Converter.GetString(Year); hdnMonth.Text = Converter.GetString(Month); hdnYear.Text = Converter.GetString(Year); } }
protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { txtEmpNo.Focus(); txtNewPayScale.ReadOnly = true; txtNewBasic.ReadOnly = true; txtEmpNo.ReadOnly = false; A2ZHRPARAMETERDTO dto = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string date = dt.ToString("dd/MM/yyyy"); txtNewIncrementDate.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)); 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) { 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) { 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) { 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) { lblCashCode.Text = DataAccessLayer.Utility.Converter.GetString(SessionStore.GetValue(Params.SYS_USER_GLCASHCODE)); A2ZHRPARAMETERDTO dto = A2ZHRPARAMETERDTO.GetParameterValue(); DateTime dt = Converter.GetDateTime(dto.ProcessDate); string SalDate = dt.ToString("dd/MM/yyyy"); lblProcDate.Text = SalDate; //dt = dt.AddMonths(-1); //string date = dt.ToString("dd/MM/yyyy"); //lblProcDate.Text = date; FromWareHouseDropdown(); ddlWareHouse.SelectedValue = Converter.GetString(lblCashCode.Text); GroupTypeDropdown(); } }