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();
        }
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            IsAllowEdit = false;
            //AddPanel.Visible = false;
            //AddPanelSelectAll.Visible = false;
        }

        //Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);

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


        DBFilter leaveYearFilter = new DBFilter();

        leaveYearFilter.add(new Match("EmpID", CurID));
        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.add(new DropDownVLSearchBinder(Year, "Year(LeaveAppDateFrom)", ELeaveApplication.VLLeaveAppYear).setFilter(leaveYearFilter));//, null, "Year(pp.PayPeriodFR)"));
        sbinding.initValues("LeaveAppUnit", null, Values.VLLeaveUnit, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("LeaveCodeID", null, ELeaveCode.VLLeaveCode, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        //sbinding.initValues("LeaveApplicationID", null, ELeaveApplication.VLLeaveApplication, HROne.Common.WebUtility.GetSessionCultureInfo(Session));
        sbinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;
        if (!IsPostBack)
        {
            ListFooter.ListOrderBy = "LeaveAppDateFrom";
            ListFooter.ListOrder   = false;
        }
    }
Esempio n. 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(CessationReasonCode);
        binding.add(CessationReasonDesc);
        binding.add(new CheckBoxBinder(db, CessationReasonIsSeverancePay));
        binding.add(new CheckBoxBinder(db, CessationReasonIsLongServicePay));
        binding.add(new CheckBoxBinder(db, CessationReasonHasProrataYEB));

        binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, db);
        sbinding.init(DecryptedRequest, null);
        sbinding.initValues("CessationReasonIsSeverancePay", null, Values.VLYesNo, null);
        sbinding.initValues("CessationReasonIsLongServicePay", null, Values.VLYesNo, null);
        sbinding.initValues("CessationReasonHasProrataYEB", null, Values.VLYesNo, null);

        info = ListFooter.ListInfo;

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

        //System.Globalization.CultureInfo ci = HROne.Common.WebUtility.GetSessionCultureInfo(Session);

        toolBar.FunctionCode   = FUNCTION_CODE;
        SelectAllPanel.Visible = toolBar.DeleteButton_Visible;



        binding = new SearchBinding(dbConn, db);
        binding.add(new LikeSearchBinder(PaymentCode, "PaymentCode"));
        binding.add(new LikeSearchBinder(PaymentCodeDesc, "PaymentCodeDesc"));
        binding.add(new DropDownVLSearchBinder(PaymentTypeID, "c.PaymentTypeID", EPaymentType.VLPaymentType)); //.setLocale(ci));
        binding.add(new DropDownVLSearchBinder(PaymentCodeIsMPF, "PaymentCodeIsMPF", Values.VLYesNo));         //.setLocale(ci));
        binding.add(new DropDownVLSearchBinder(PaymentCodeIsWages, "PaymentCodeIsWages", Values.VLYesNo));     //.setLocale(ci));

        binding.initValues("PaymentCodeIsProrata", null, Values.VLYesNo, null);
        binding.initValues("PaymentCodeIsWages", null, Values.VLYesNo, null);
        binding.initValues("PaymentCodeIsMPF", null, Values.VLYesNo, null);
        binding.initValues("PaymentCodeIsTopUp", null, Values.VLYesNo, null);
        binding.initValues("PaymentCodeIsORSO", null, Values.VLYesNo, null);



        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;
    }
Esempio n. 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //PreRender += new EventHandler(Emp_Authorize_List_PreRender);

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

        binding.initValues("EmpRequestApprovalHistoryStatusBefore", null, EEmpRequest.VLRequestStatus, null);
        binding.initValues("EmpRequestApprovalHistoryStatusAfter", null, EEmpRequest.VLRequestStatus, null);

        binding.init(Request.QueryString, null);

        info = ListFooter.ListInfo;

        //EESSUser user = WebUtils.GetCurUser(Session);
        //if (user != null)
        //{
        //    UserID = user.EmpID;
        //}
        //if (!Int32.TryParse(DecryptedRequest["TargetEmpID"], out CurEmpID))
        //    CurEmpID = -1;
        if (!Int32.TryParse(DecryptedRequest["EmpRequestID"], out CurRequestID))
        {
            CurRequestID = -1;
        }
        //EmpID.Value = CurEmpID.ToString();
    }
    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_LeaveBalanceAdjustment_List_PreRender);


        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("LeaveBalAdjType", null, ELeaveBalanceAdjustment.VLLeaveBalAdjType, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("LeaveTypeID", null, ELeaveType.VLLeaveType, 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 = "LeaveBalAdjDate";
            ListFooter.ListOrder   = false;
        }
    }
    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;
    }
Esempio n. 8
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.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);
    }
    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.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;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);

        dblTotalPaymentAmount = 0;

        sBinding = new SearchBinding(dbConn, db);
        sBinding.add(new HiddenMatchBinder(EmpPayrollID));
        sBinding.initValues("PaymentCodeID", null, EPaymentCode.VLPaymentCode, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sBinding.initValues("CurrencyID", null, Values.VLCurrency, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sBinding.initValues("PayRecMethod", null, Values.VLPaymentMethod, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sBinding.initValues("EmpAccID", null, EEmpBankAccount.VLBankAccount, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sBinding.initValues("PayRecIsRestDayPayment", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        sBinding.init(DecryptedRequest, null);

        newBinding = new Binding(dbConn, db);
        newBinding.add(EmpPayrollID);
        newBinding.add(new DropDownVLBinder(db, PaymentCodeID, EPaymentCode.VLPaymentCode));
        newBinding.add(new DropDownVLBinder(db, CurrencyID, Values.VLCurrency).setNotSelected(null));
        newBinding.add(PayRecActAmount);
        newBinding.add(new DropDownVLBinder(db, PayRecMethod, Values.VLPaymentMethod).setNotSelected(null));
        newBinding.add(PayRecNumOfDayAdj);
        newBinding.add(new DropDownVLBinder(db, CostCenterID, ECostCenter.VLCostCenter).setNotSelected(HROne.Common.WebUtility.GetLocalizedString(ECostCenter.DEFAULT_COST_CENTER_TEXT)));
        newBinding.add(new CheckBoxBinder(db, PayRecIsRestDayPayment));
        newBinding.add(PayRecRemark);
        {
            DBFilter filter           = new DBFilter();
            DBFilter empPayrollFilter = new DBFilter();
            //empPayrollFilter.add(new Match("EmpPayrollID", DecryptedRequest["EmpPayrollID"]));
            empPayrollFilter.add(new Match("EmpPayrollID", CurrentEmpPayrollID));
            filter.add(new IN("EmpID", "Select EmpID from EmpPayroll", empPayrollFilter));
            ArrayList empInfoList = EEmpPersonalInfo.db.select(dbConn, filter);

            if (empInfoList.Count > 0)
            {
                EEmpPersonalInfo tmpEmpInfo = (EEmpPersonalInfo)empInfoList[0];
                OR bankAccountORTerm        = new OR();
                bankAccountORTerm.add(new Match("EmpID", tmpEmpInfo.EmpID));
                {
                    if (tmpEmpInfo.MasterEmpID > 0)
                    {
                        bankAccountORTerm.add(new Match("EmpID", tmpEmpInfo.MasterEmpID));
                    }
                }
                empBankAccountFilter.add(bankAccountORTerm);
            }
            else
            {
                empBankAccountFilter.add(new Match("EmpID", 0));
            }

            newBinding.add(new DropDownVLBinder(db, EmpAccID, EEmpBankAccount.VLBankAccount, empBankAccountFilter).setNotSelected(HROne.Common.WebUtility.GetLocalizedString(EEmpBankAccount.DEFAULT_BANK_ACCOUNT_TEXT)));
        }
        newBinding.init(Request, Session);

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



        sBinding = new SearchBinding(dbConn, db);
        sBinding.add(new HiddenMatchBinder(EmpID));
        sBinding.initValues("RosterCodeID", null, ERosterCode.VLRosterCode, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sBinding.add(new DropDownVLSearchBinder(Year, "Year(AttendanceRecordDate)", EAttendanceRecord.VLAttendanceRecordYear, false));//, null, "Year(pp.PayPeriodFR)"));
        sBinding.add(new DropDownVLSearchBinder(Month, "Month(AttendanceRecordDate)", Values.VLMonth, false));
        sBinding.initValues("AttendanceRecordIsAbsent", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sBinding.init(DecryptedRequest, null);

        //newBinding = new Binding(dbConn, db);
        //newBinding.add(EmpID);
        //newBinding.add(new DropDownVLBinder(db, RosterCodeID, ERosterCode.VLRosterCode));
        //newBinding.add(AttendanceRecordDate);
        //newBinding.add(AttendanceRecordRemark);


        //newBinding.init(DecryptedRequest, null);
        info = ListFooter.ListInfo;

        if (!Page.IsPostBack)
        {
            try
            {
                DateTime Today = AppUtils.ServerDateTime();
                Month.SelectedValue = Today.Month.ToString();
                Year.SelectedValue  = Today.Year.ToString();
            }
            catch
            {
            }
            if (CurID > 0)
            {
                //if (loadObject())
                //{
                view = loadData(info, db, Repeater);
            }
            //}
        }
    }
    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());
        }
    }
Esempio n. 15
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(LoginID, "LoginID"));
        binding.add(new LikeSearchBinder(UserName, "UserName"));
        binding.initValues("UserAccountStatus", null, EUser.VLAccountStatus, null);
        binding.init(DecryptedRequest, null);
        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;

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

        if (WebUtils.TotalActiveUser(dbConn, 0) >= WebUtils.productLicense(Session).NumOfUsers)
        {
            toolBar.NewButton_Visible = false;
        }
        else
        {
            toolBar.NewButton_Visible = toolBar.DeleteButton_Visible;
        }
    }
Esempio n. 16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //Add
        binding = new Binding(dbConn, db);
        binding.add(AttendancePlanID);
        binding.add(new DropDownVLBinder(db, PaymentCodeID, EPaymentCode.VLPaymentCode));
        binding.add(AttendancePlanAdditionalPaymentAmount);
        binding.add(AttendancePlanAdditionalPaymentMaxLateMins);
        binding.add(AttendancePlanAdditionalPaymentMaxEarlyLeaveMins);
        binding.add(AttendancePlanAdditionalPaymentMinOvertimeMins);
        binding.add(AttendancePlanAdditionalPaymentRosterAcrossTime);
        binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, db);
        sbinding.add(new HiddenMatchBinder(AttendancePlanID));
        sbinding.initValues("PaymentCodeID", null, EPaymentCode.VLPaymentCode, null);
        sbinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        //if (!int.TryParse(DecryptedRequest["AttendancePlanID"], out CurID))
        //    CurID = -1;

        Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);

        IsAllowEdit = WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite);

        AttendancePlanAdditionalPaymentRosterAcrossTime.MaxLength = 0;
    }
    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, ETrainingSeminar.db);
        binding.add(TrainingSeminarID);
        binding.add(new LabelVLBinder(db, TrainingCourseID, ETrainingCourse.VLTrainingCourse));
        binding.add(TrainingSeminarDesc);
        binding.add(TrainingSeminarDateFrom);
        binding.add(TrainingSeminarDateTo);
        binding.add(TrainingSeminarDuration);
        binding.add(new LabelVLBinder(db, TrainingSeminarDurationUnit, ETrainingSeminar.VLTrainingDurationUnit));
        binding.add(TrainingSeminarTrainer);
        binding.init(Request, Session);

        trainingEnrollBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        trainingEnrollBinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, null);
        trainingEnrollBinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

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

        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;



        binding = new SearchBinding(dbConn, db);
        binding.add(new DropDownVLSearchBinder(TrainingCourseID, "TrainingCourseID", ETrainingCourse.VLTrainingCourse));
        binding.add(new LikeSearchBinder(TrainingSeminarTrainer, "TrainingSeminarTrainer"));

        binding.initValues("TrainingCourseID", null, ETrainingCourse.VLTrainingCourse, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        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;
    }
Esempio n. 20
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;
    }
    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)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            panelRollbackOption.Visible = false;
        }
        else
        {
            panelRollbackOption.Visible = true;
        }

        btnRollback.OnClientClick = HROne.Translation.PromptMessage.PAYROLL_ROLLBACK_PAYROLL_PERIOD_GENERIC_JAVASCRIPT;

        payPeriodSBinding = new SearchBinding(dbConn, db);
        // Start 0000069, KuangWei, 2014-08-26
        //payPeriodSBinding.add(new DropDownVLSearchBinder(PayGroupID, "PayGroupID", EPayrollGroup.VLPayrollGroup, false));
        initPayrollGroup();
        // End 0000069, KuangWei, 2014-08-26
        payPeriodSBinding.initValues("PayPeriodConfirmBy", null, EUser.VLUserName, null);
        payPeriodSBinding.init(DecryptedRequest, null);

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

        if (!Page.IsPostBack)
        {
            payperiodView = payPeriodLoadData(payPeriodInfo, EPayrollPeriod.db, payPeriodRepeater);
        }
    }
    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_Benefit_List_PreRender);

        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("EmpBenefitPlanID", null, EBenefitPlan.VLBenefitPlan, null);
        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)
    {
        payPeriodSBinding = new SearchBinding(dbConn, EPayrollPeriod.db);
        payPeriodSBinding.initValues("PayPeriodConfirmBy", null, EUser.VLUserName, null);

        payPeriodInfo = ListFooter.ListInfo;
    }
Esempio n. 25
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }
        binding = new Binding(dbConn, db);
        binding.add(new DropDownVLBinder(db, PayGroupID, EPayrollGroup.VLPayrollGroup));


        binding.init(Request, Session);

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

        if (!int.TryParse(PayGroupID.SelectedValue, out CurID))
        {
            CurID = -1;
        }
        Payroll_ConfirmedPeriod_List1.PayGroupID    = CurID;
        Payroll_ConfirmedPeriod_List1.PayrollStatus = PayrollStatus.SelectedValue;


        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Esempio n. 26
0
    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, EAuthorizationGroup.db);
        binding.add(AuthorizationGroupID);
        binding.add(AuthorizationCode);
        binding.add(AuthorizationDesc);
        binding.init(Request, Session);

        addAuthorizerBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        addAuthorizerBinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, null);
        addAuthorizerBinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

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

        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);
    }
Esempio n. 28
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.initValues("ORSOPlanIsResidual", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        binding.add(new LikeSearchBinder(ORSOPlanCode, "ORSOPlanCode"));
        binding.add(new LikeSearchBinder(ORSOPlanDesc, "ORSOPlanDesc"));


        binding.init(DecryptedRequest, null);

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

        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }
    }
Esempio n. 29
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE))
        {
            return;
        }

        info = ListFooter.ListInfo;



        binding = new SearchBinding(dbConn, db);
        binding.add(new LikeSearchBinder(CompanyDBClientCode, "CompanyDBClientCode"));
        binding.initValues("DBServerID", null, EDatabaseServer.VLDBServerList, null);
        binding.initValues("CompanyDBIsActive", null, HROne.Lib.Entities.Values.VLYesNo, null);
        binding.init(Request.QueryString, null);
    }
    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.initValues("RosterCodeID", new DBFilter(), ERosterCode.VLRosterCode, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("AttendanceRecordIsAbsent", new DBFilter(), Values.VLYesNo, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

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