protected void Page_Load(object sender, EventArgs e)
    {
        Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);

        sBinding = new SearchBinding(dbConn, db);
        sBinding.add(new HiddenMatchBinder(EmpPayrollID));
        sBinding.initValues("MPFPlanID", null, EMPFPlan.VLMPFPlan, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        sBinding.init(DecryptedRequest, null);

        newBinding = new Binding(dbConn, db);
        newBinding.add(EmpPayrollID);
        newBinding.add(new TextBoxBinder(db, MPFRecPeriodFr.TextBox, MPFRecPeriodFr.ID));
        newBinding.add(new TextBoxBinder(db, MPFRecPeriodTo.TextBox, MPFRecPeriodTo.ID));
        newBinding.add(MPFRecActMCRI);
        newBinding.add(MPFRecActMCEE);
        newBinding.add(MPFRecActMCER);
        newBinding.add(MPFRecActVCEE);
        newBinding.add(MPFRecActVCER);
        newBinding.add(new DropDownVLBinder(db, MPFPlanID, EMPFPlan.VLMPFPlan));

        newBinding.init(Request, Session);

        info = ListFooter.ListInfo;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        //PreRender += new EventHandler(Emp_Authorize_List_PreRender);

        binding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        //binding.add(new DropDownVLSearchBinder(EmpRequestStatus2, "R.EmpRequestStatus", VLStatusUnit));
        //binding.add(new FieldDateRangeSearchBinder(EmpRequestFromDate, EmpRequestToDate, "EmpRequestCreateDate").setUseCurDate(false));

        if (!ESystemParameter.getParameter(dbConn, ESystemParameter.PARAM_CODE_ENABLE_OTCLAIM).Equals("Y", StringComparison.CurrentCultureIgnoreCase))
        {
            binding.add(new DropDownVLSearchBinder(EmpRequestType, "R.EmpRequestType", EEmpRequest.VLRequestType));
        }
        else
        {
            binding.add(new DropDownVLSearchBinder(EmpRequestType, "R.EmpRequestType", EEmpRequest.VLRequestType2));
        }

        binding.initValues("EmpRequestType", null, EEmpRequest.VLRequestType, null);
        binding.initValues("EmpRequestStatus", null, EEmpRequest.VLRequestStatus, null);

        binding.init(Request.QueryString, null);

        info = ListFooter.ListInfo;

        EESSUser user = WebUtils.GetCurUser(Session);

        if (user != null)
        {
            CurID       = user.EmpID;
            EmpID.Value = CurID.ToString();
        }
    }
示例#3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode = FUNCTION_CODE;
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            IsAllowEdit = false;
        }
        AddPanel.Visible = IsAllowEdit;



        binding = new Binding(dbConn, db);
        binding.add(PositionCode);
        binding.add(PositionDesc);
        binding.add(PositionCapacity);
        binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, db);
        sbinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE))
        {
            return;
        }
        //toolBar.FunctionCode = FUNCTION_CODE;
        //if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        //{
        //    IsAllowEdit = false;
        //}
        AddPanel.Visible      = IsAllowEdit;
        HolidayImport.Visible = IsAllowEdit;

        binding = new Binding(dbConn, db);
        binding.add(new TextBoxBinder(db, PublicHolidayDate.TextBox, PublicHolidayDate.ID));
        binding.add(PublicHolidayDesc);
        binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, db);
        sbinding.add(new DropDownVLSearchBinder(YearSelect, "YEAR(PublicHolidayDate)", new WFYearList(15, 5), false));
        sbinding.init(Request.QueryString, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }



        binding = new SearchBinding(dbConn, db);
        //binding.add(new LikeSearchBinder(EmpNo, "EmpNo"));
        //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname"));
        //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName"));
        //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName"));
        //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias"));
        //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", Values.VLGender).setLocale(ci));

        //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false));
        //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus).setLocale(ci));
        binding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, ci);
        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
示例#6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;


        PreRender += new EventHandler(Emp_Dependant_List_PreRender);


        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.init(DecryptedRequest, null);


        if (!int.TryParse(DecryptedRequest["EmpID"], out CurID))
        {
            CurID = -1;
        }
        EmpID.Value = CurID.ToString();

        info = ListFooter.ListInfo;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            AllowEditPanel.Visible = false;
            m_IsAllowEdit          = false;
        }
        AllowEditPanel.Visible = m_IsAllowEdit;



        PreRender += new EventHandler(Emp_WorkingExperience_List_PreRender);


        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("EmpWorkExpFromMonth", null, Values.VLMonth, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("EmpWorkExpToMonth", null, Values.VLMonth, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.init(DecryptedRequest, null);


        if (!int.TryParse(DecryptedRequest["EmpID"], out CurID))
        {
            CurID = -1;
        }
        EmpID.Value = CurID.ToString();

        info = ListFooter.ListInfo;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;



        binding = new SearchBinding(dbConn, db);
        //binding.initValues("RosterCodeLunch", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionCultureInfo(Session));
        //binding.initValues("RosterCodeOT", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionCultureInfo(Session));
        binding.initValues("RosterCodeType", null, ERosterCode.VLRosterType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        binding.add(new LikeSearchBinder(RosterCode, "RosterCode"));
        binding.add(new LikeSearchBinder(RosterCodeDesc, "RosterCodeDesc"));
        binding.add(new DropDownVLSearchBinder(RosterCodeType, "RosterCodeType", ERosterCode.VLRosterType));

        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;
        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }
    }
示例#9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;



        binding = new SearchBinding(dbConn, db);
        DBFilter MPFSchemeIDFilter = new DBFilter();

        MPFSchemeIDFilter.add(new IN("MPFSchemeID", "Select MPFSchemeID from MPFPlan", new DBFilter()));
        binding.add(new DropDownVLSearchBinder(MPFSchemeID, "MPFSchemeID", EMPFScheme.VLMPFScheme, false).setFilter(MPFSchemeIDFilter));
        binding.add(new LikeSearchBinder(MPFSchemeCessationReasonCode, "MPFSchemeCessationReasonCode"));
        binding.add(new LikeSearchBinder(MPFSchemeCessationReasonDesc, "MPFSchemeCessationReasonDesc"));

        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;
        if (!IsPostBack)
        {
            try
            {
                MPFSchemeID.SelectedValue = DecryptedRequest["MPFSchemeID"];
            }
            catch
            {
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            IsAllowEdit             = false;
            AllowEditPanel.Visible  = false;
            AllowEditPanel2.Visible = false;
        }
        PreRender += new EventHandler(Emp_FinalPayment_List_PreRender);


        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("PayCodeID", null, EPaymentCode.VLPaymentCode, null);
        sbinding.initValues("EmpFinalPayMethod", null, Values.VLPaymentMethod, null);
        sbinding.initValues("EmpFinalPayIsRestDayPayment", null, Values.VLYesNo, null);

        sbinding.initValues("EmpFinalPayIsAutoGen", null, Values.VLYesNo, null);
        sbinding.initValues("CostCenterID", null, ECostCenter.VLCostCenter, null);
        sbinding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this.Session, this.Controls);

        if (!int.TryParse(DecryptedRequest["EmpID"], out CurID))
        {
            CurID = -1;
        }
        Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);

        Generate.OnClientClick       = HROne.Translation.PromptMessage.CreateConfirmDialogJavascript(HROne.Common.WebUtility.GetLocalizedString("All final payment previously generated will be lost.\r\nStill Continue?"), Generate);
        EmpID.Value                  = CurID.ToString();
        CostCenterHeaderCell.Visible = WebUtils.productLicense(Session).IsCostCenter;

        info = ListFooter.ListInfo;
    }
示例#11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, "RPT206", WebUtils.AccessLevel.Read))
        {
            return;
        }



        binding = new SearchBinding(dbConn, db);
        //binding.add(new LikeSearchBinder(EmpNo, "EmpNo"));
        //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname"));
        //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName"));
        //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName"));
        //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias"));
        //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", EPayrollGroup.VLPayrollGroup).setLocale(ci));

        //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false));


        binding.init(DecryptedRequest, null);

        SearchBinding tempBinding = new SearchBinding(dbConn, db);

        tempBinding.add(new DropDownVLSearchBinder(ProcessMonth, "", Values.VLMonth));
        tempBinding.add(new DropDownVLSearchBinder(ReferenceMonth, "", Values.VLMonth));

        tempBinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
示例#12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, TRIALRUN_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            return;
        }
        if (!WebUtils.CheckAccess(Response, Session, CONFIRM_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            return;
        }
        if (!WebUtils.CheckAccess(Response, Session, PROCESSEND_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            return;
        }

        btnProcessEnd.OnClientClick = HROne.Translation.PromptMessage.PAYROLL_PROCESS_END_GENERIC_JAVASCRIPT;

        binding = new SearchBinding(dbConn, db);
        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;

        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }
    }
示例#13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }

        binding = new SearchBinding(dbConn, db);
        //binding.add(new FieldDateRangeSearchBinder(new HtmlInputText(CreateDateFrom.Value), new HtmlInputText(CreateDateTo.Value), "CreateDate").setUseCurDate(false));
        //binding.add(new DropDownVLSearchBinder(Position, "epi.PositionID", EPosition.VLPosition));
        binding.init(DecryptedRequest, null);


        if (!Page.IsPostBack)
        {
            DBFilter auditTrailFunctionIDFilter = new DBFilter();
            auditTrailFunctionIDFilter.add(new IN("FunctionID", "Select Distinct FunctionID from " + EAuditTrail.db.dbclass.tableName, new DBFilter()));
            WebFormUtils.loadValues(dbConn, FunctionID, ESystemFunction.VLSystemFunction, auditTrailFunctionIDFilter, ci, null, null);

            DBFilter auditTrailUserIDFilter = new DBFilter();
            auditTrailUserIDFilter.add(new IN("UserID", "Select Distinct UserID from " + EAuditTrail.db.dbclass.tableName, new DBFilter()));
            WebFormUtils.loadValues(dbConn, UserID, EUser.VLUserName, auditTrailUserIDFilter, ci, null, null);
        }

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;



        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("RosterTableGroupID", null, ERosterTableGroup.VLRosterTableGroup, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("EmpRosterTableGroupIsSupervisor", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.init(DecryptedRequest, null);

        if (!int.TryParse(DecryptedRequest["EmpID"], out CurID))
        {
            CurID = -1;
        }
        EmpID.Value = CurID.ToString();


        info = ListFooter.ListInfo;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }



        binding = new SearchBinding(dbConn, db);
        //binding.add(new LikeSearchBinder(EmpNo, "EmpNo"));
        //binding.add(new LikeSearchBinder(EmpName, "EmpEngSurname", "EmpEngOtherName", "EmpChiFullName"));
        //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false));
        //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus).setLocale(ci));
        //binding.add(new DropDownVLSearchBinder((DropDownList)EmployeeSearchControl1.AdditionElementControl.FindControl("PayGroup"), "pp.PayGroupID", EPayrollGroup.VLPayrollGroup).setLocale(ci));
        binding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, ci);
        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);

        if (!IsPostBack)
        {
            WebFormUtils.loadValues(dbConn, TrainingCourseList, ETrainingCourse.VLTrainingCourse, new DBFilter());
        }
    }
示例#16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }



        binding = new SearchBinding(dbConn, db);
        //binding.add(new LikeSearchBinder(EmpNo, "EmpNo"));
        //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname"));
        //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName"));
        //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName"));
        //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias"));
        //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", EPayrollGroup.VLPayrollGroup).setLocale(ci));

        //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false));
        //binding.add(new FieldDateRangeSearchBinder((WebDatePicker)EmployeeSearchControl1.AdditionElementControl.FindControl("LastEmploymentDateFrom"), (WebDatePicker)EmployeeSearchControl1.AdditionElementControl.FindControl("LastEmploymentDateTo"), "et.EmpTermLastDate").setUseCurDate(false));

        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;
        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            AllowEditPanel.Visible = false;
            m_IsAllowEdit          = false;
        }
        AllowEditPanel.Visible = m_IsAllowEdit;

        PreRender += new EventHandler(Emp_Beneficiaries_List_PreRender);

        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.init(DecryptedRequest, null);


        if (!int.TryParse(DecryptedRequest["EmpID"], out CurID))
        {
            CurID = -1;
        }
        EmpID.Value = CurID.ToString();

        info = ListFooter.ListInfo;
    }
示例#18
0
    //WFValueList functionList = new AppUtils.NewWFTextList(
    //    new string[] {
    //        "PER001",
    //        "PER002",
    //        "PER003"
    //    },
    //    new string[] {
    //        "Personal Information",
    //        "Position Information",
    //        "Terminated" }
    //    );

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }

        foreach (string functionCode in export_Function_List)
        {
            CheckBox functionCheckBox = (CheckBox)this.FunctionList.FindControl(FUNCTION_CHECKBOX_PREFIX + functionCode);
            if (!WebUtils.CheckPermission(Session, functionCode.Replace("_", "-"), WebUtils.AccessLevel.Read))
            {
                functionCheckBox.Visible = false;
                functionCheckBox.Checked = false;
            }
            else
            {
                functionCheckBox.Visible = true;
            }
        }

        empSBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        empSBinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        empSBinding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);

        empInfo = ListFooter.ListInfo;
        empInfo.recordPerPage = 0;
    }
示例#19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            return;
        }

        sbinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);


        sbinding.init(DecryptedRequest, null);
        sbinding.initValues("LeaveTypeID", new DBFilter(), ELeaveType.VLLeaveType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("LeaveBalAdjType", new DBFilter(), ELeaveBalanceAdjustment.VLLeaveBalAdjType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);

        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }

        //CNDImportFile.ControlStyle.CssClass = "button";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            return;
        }
        toolBar.FunctionCode = FUNCTION_CODE;

        binding = new Binding(dbConn, db);
        binding.add(TaxCompID);
        binding.add(TaxCompEmployerName);
        binding.add(TaxCompEmployerAddress);
        binding.add(TaxCompSection);
        binding.add(TaxCompERN);
        binding.add(TaxCompDesignation);

        binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, ECompany.db);
        sbinding.init(DecryptedRequest, null);

        if (!int.TryParse(DecryptedRequest["TaxCompID"], out CurID))
        {
            CurID = -1;
        }

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
示例#21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;



        binding = new SearchBinding(dbConn, db);
        binding.add(new LikeSearchBinder(MPFPlanCode, "MPFPlanCode"));
        binding.add(new LikeSearchBinder(MPFPlanDesc, "MPFPlanDesc"));
        binding.add(new LikeSearchBinder(MPFPlanSchemeName, "MPFSchemeDesc"));
        binding.add(new LikeSearchBinder(MPFSchemeCode, "MPFSchemeCode"));
        binding.add(new LikeSearchBinder(MPFPlanCompanyName, "MPFPlanCompanyName"));

        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;

        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        isAllowLeaveCancel = ESystemParameter.getParameter(dbConn, ESystemParameter.PARAM_CODE_ESS_FUNCTION_CANCEL_LEAVE_APPLICATION).Equals("N", StringComparison.CurrentCultureIgnoreCase) ? false : true;

        EESSUser user = WebUtils.GetCurUser(Session);

        if (user != null)
        {
            CurID       = user.EmpID;
            EmpID.Value = CurID.ToString();
        }

        DBFilter leaveTypeFilter = new DBFilter();

        {
            DBFilter leaveAppFilter = new DBFilter();
            leaveAppFilter.add(new Match("EmpID", CurID));
            DBFilter leaveCodeFilter = new DBFilter();
            leaveCodeFilter.add(new IN("LeaveCodeID", "SELECT DISTINCT la.LeaveCodeID FROM " + ELeaveApplication.db.dbclass.tableName + " la", leaveAppFilter));
            leaveTypeFilter.add(new IN("LeaveTypeID", "SELECT DISTINCT lc.LeaveTypeID FROM " + ELeaveCode.db.dbclass.tableName + " lc", leaveCodeFilter));
        }
        binding = new SearchBinding(dbConn, db);
        binding.initValues("LeaveAppUnit", null, Values.VLLeaveUnit, null);
        binding.add(new DropDownVLSearchBinder(LeaveType, "l.LeaveTypeID", ELeaveType.VLLeaveType).setFilter(leaveTypeFilter));
        //binding.add(new FieldDateRangeSearchBinder(LeaveAppDateFrom.TextBox, LeaveAppDateTo.TextBox, "LeaveAppDateFrom").setUseCurDate(false));

        binding.init(Request.QueryString, null);

        info = ListFooter.ListInfo;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        binding = new SearchBinding(dbConn, db);
        //binding.add(new LikeSearchBinder(EmpNo, "EmpNo"));
        //binding.add(new LikeSearchBinder(EmpEngSurname, "EmpEngSurname"));
        //binding.add(new LikeSearchBinder(EmpEngOtherName, "EmpEngOtherName"));
        //binding.add(new LikeSearchBinder(EmpChiFullName, "EmpChiFullName"));
        //binding.add(new LikeSearchBinder(EmpAlias, "EmpAlias"));
        //binding.add(new DropDownVLSearchBinder(EmpGender, "EmpGender", Values.VLGender).setLocale(ci));
        //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false));
        //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus));
        //binding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, ci);
        binding.init(DecryptedRequest, null);


        if (!Page.IsPostBack)
        {
            PositionList.LoadListControl(dbConn, EPosition.VLPosition, true);
            RankList.LoadListControl(dbConn, ERank.VLRank, false);
            EmploymentTypeList.LoadListControl(dbConn, EEmploymentType.VLEmploymentType, true);
            StaffTypeList.LoadListControl(dbConn, EStaffType.VLStaffType, true);
            PayrollGroupList.LoadListControl(dbConn, EPayrollGroup.VLPayrollGroup, true);


            //selected = PayGroupID.SelectedValue;
            //WebFormUtils.loadValues(PayGroupID, EPayrollGroup.VLPayrollGroup, new DBFilter(), null, (string)selected, (string)"combobox.notselected");

            string selected = EmpGender.SelectedValue;
            WebFormUtils.loadValues(dbConn, EmpGender, Values.VLGender, new DBFilter(), ci, (string)selected, (string)"combobox.notselected");
        }
    }
示例#24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            IsAllowEdit = false;
            ConfirmPayrollSelectAllPanel.Visible = false;
        }

        Year.Attributes.Add("onchange", "year=parseInt(" + Year.ClientID + ".value); if (!(year>1900)) {if (" + Year.ClientID + ".value!='') alert('Invalid Year');return true; }if (" + Month.ClientID + ".selectedIndex==0) return true;");
        Month.Attributes.Add("onchange", "year=parseInt(" + Year.ClientID + ".value); if (!(year>1900)) return true;");
        Year2.Attributes.Add("onchange", "year2=parseInt(" + Year2.ClientID + ".value); if (!(year2>1900)) {if (" + Year2.ClientID + ".value!='') alert('Invalid Year');return true; }if (" + Month2.ClientID + ".selectedIndex==0) return true;");
        Month2.Attributes.Add("onchange", "year2=parseInt(" + Year2.ClientID + ".value); if (!(year2>1900)) return true;");

        sbinding = new SearchBinding(dbConn, db);
        sbinding.init(DecryptedRequest, null);

        binding = new SearchBinding(dbConn, EEmpCostCenter.db);
        binding.add(new DropDownVLSearchBinder(Month, "Month", Values.VLMonth));
        binding.add(new DropDownVLSearchBinder(Month2, "Month", Values.VLMonth));
        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        btnUndo.OnClientClick = HROne.Translation.PromptMessage.CreateConfirmDialogJavascript(HROne.Common.WebUtility.GetLocalizedString("PAYROLL_UNDO_CLICK_MESSAGE", ci), btnUndo);
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }

        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            toolBar.CustomButton1_Visible = false;
        }

        sbinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        sbinding.add(new HiddenMatchBinder(CAImportBatchID));

        sbinding.init(DecryptedRequest, null);

        binding = new Binding(dbConn, ECommissionAchievementImportBatch.db);
        binding.add(CAImportBatchDateTime);
        binding.add(CAImportBatchID);
        binding.add(new LabelVLBinder(ECommissionAchievementImportBatch.db, CAImportBatchUploadedBy, EUser.VLUserName));
        binding.add(CAImportBatchRemark);
        binding.init(Request, Session);

        if (!int.TryParse(DecryptedRequest["CAImportBatchID"], out CurID))
        {
            CurID = -1;
        }

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    // End 0000185, KuangWei, 2015-05-05

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        sbinding = new SearchBinding(dbConn, EHierarchyElement.db);
        //sbinding.add(new DropDownVLSearchBinder(HLevelID, "HLevelID", EHierarchyLevel.VLHierarchy, false));
        //sbinding.init(DecryptedRequest, null);


        DBFilter hierarchyLevelFilter = new DBFilter();

        // additional grouping method not limited to hierarchy setting
        hierarchyLevelFilter.add("HLevelSeqNo", true);
        ArrayList hierarchyLevelList = EHierarchyLevel.db.select(dbConn, hierarchyLevelFilter);

        foreach (EHierarchyLevel hlevel in hierarchyLevelList)
        {
            HLevelID.Items.Add(new ListItem(hlevel.HLevelCode + " - " + hlevel.HLevelDesc, hlevel.HLevelID.ToString()));
        }

        // Start 0000185, KuangWei, 2015-05-05
        binding = new SearchBinding(dbConn, db);
        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;
        // End 0000185, KuangWei, 2015-05-05

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
示例#27
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;

        PreRender += new EventHandler(Emp_AVCPlan_List_PreRender);


        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("AVCPlanID", null, EAVCPlan.VLAVCPlan, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.init(DecryptedRequest, null);

        if (!int.TryParse(DecryptedRequest["EmpID"], out CurID))
        {
            CurID = -1;
        }
        EmpID.Value = CurID.ToString();


        info = ListFooter.ListInfo;
        if (!IsPostBack)
        {
            ListFooter.ListOrderBy = "EmpAVCEffFr";
            ListFooter.ListOrder   = false;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode = FUNCTION_CODE;
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            //AddPanel.Visible = false;
            IsAllowEdit = false;
        }



        //binding = new Binding(dbConn, db);
        //binding.add(AuthorizationCode);
        //binding.add(AuthorizationDesc);
        //binding.add(new CheckBoxBinder(db, AuthorizationGroupIsApproveEEInfo));
        //binding.add(new CheckBoxBinder(db, AuthorizationGroupIsApproveLeave));
        //binding.add(new CheckBoxBinder(db, AuthorizationGroupIsReceiveOtherGrpAlert));
        //binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, db);
        sbinding.add(new LikeSearchBinder(AuthorizationGroupCode, "AuthorizationCode"));
        sbinding.add(new LikeSearchBinder(AuthorizationGroupDesc, "AuthorizationDesc"));
        sbinding.init(DecryptedRequest, null);
        sbinding.initValues("AuthorizationGroupIsApproveEEInfo", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("AuthorizationGroupIsApproveLeave", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("AuthorizationGroupIsReceiveOtherGrpAlert", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        info = ListFooter.ListInfo;
        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
示例#29
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;



        binding = new SearchBinding(dbConn, db);
        binding.add(new LikeSearchBinder(LeaveCodeDesc, "LeaveCodeDesc"));
        binding.add(new DropDownVLSearchBinder(LeaveTypeID, "c.LeaveTypeID", ELeaveType.VLLeaveType));
        //binding.add(new DropDownVLSearchBinder(PaymentCodeID, "PaymentCodeID", EPaymentCode.VLPaymentCode));

        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);

        info = ListFooter.ListInfo;

        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, "PAY009", WebUtils.AccessLevel.Read))
        {
            return;
        }


        binding = new SearchBinding(dbConn, db);
        //binding.add(new LikeSearchBinder(EmpNo, "EmpNo"));
        //binding.add(new LikeSearchBinder(EmpName, "EmpEngSurname", "EmpEngOtherName", "EmpChiFullName"));
        //binding.add(new FieldDateRangeSearchBinder(JoinDateFrom, JoinDateTo, "EmpDateOfJoin").setUseCurDate(false));
        //binding.add(new DropDownVLSearchBinder(EmpStatus, "EmpStatus", EEmpPersonalInfo.VLEmpStatus).setLocale(ci));
        //binding.add(new DropDownVLSearchBinder(PayGroup, "pp.PayGroupID", EPayrollGroup.VLPayrollGroup).setLocale(ci));

        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(Page, Page.Controls);

        if (!Page.IsPostBack)
        {
            //view = loadEmpData(info, db, Repeater);
        }
    }