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;
    }
Ejemplo n.º 2
0
    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 LikeSearchBinder(AttendancePlanCode, "AttendancePlanCode"));
        binding.add(new LikeSearchBinder(AttendancePlanDesc, "AttendancePlanDesc"));
        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;
        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 3
0
    protected void Page_PreRender(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            sbinding.clear();
            sbinding.add(new DropDownVLSearchBinder(SchemeSelect, "SchemeCode", EPayScale.VLDistinctSchemeList, true));

            view = loadData(info, db, Repeater);
        }
    }
Ejemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            this.Visible = false;
        }
        toolBar.FunctionCode         = FUNCTION_CODE;
        toolBar.NewButton_Visible    = toolBar.NewButton_Visible && m_AllowModify;
        toolBar.DeleteButton_Visible = toolBar.DeleteButton_Visible && m_AllowModify;
        SelectAllPanel.Visible       = toolBar.DeleteButton_Visible;

        PreRender += new EventHandler(Emp_RecurringPayment_List_PreRender);


        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.initValues("PayCodeID", null, EPaymentCode.VLPaymentCode, null);
        sbinding.initValues("EmpRPUnit", null, Values.VLPaymentUnit, null);
        sbinding.initValues("EmpRPMethod", null, Values.VLPaymentMethod, null);
        sbinding.add(new HiddenMatchBinder(EmpID, "erp.EmpID"));
        sbinding.add(new HiddenMatchSearchBinder(PayCodeID, "erp.PayCodeID"));
        sbinding.initValues("CostCenterID", null, ECostCenter.VLCostCenter, null);
        sbinding.init(DecryptedRequest, null);


        //try
        //{
        //    CurID = Int32.Parse(DecryptedRequest["EmpID"]);
        //    EmpID.Value = CurID.ToString();
        //}
        //catch (Exception ex)
        //{
        //}
        info = ListFooter.ListInfo;
        //if (!IsPostBack)
        //{
        //    ListFooter.ListOrderBy = "";
        //    ListFooter.ListOrder = false;
        //}
        CostCenterHeaderCell.Visible = WebUtils.productLicense(Session).IsCostCenter;
        FooterCell.ColSpan           = HeaderRow.Cells.Count - 1 - (WebUtils.productLicense(Session).IsCostCenter ? 0 : 1);
    }
    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(RosterTableGroupCode, "RosterTableGroupCode"));
        binding.add(new LikeSearchBinder(RosterTableGroupDesc, "RosterTableGroupDesc"));


        binding.init(DecryptedRequest, null);

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        info = ListFooter.ListInfo;
    }
Ejemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE))
        {
            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);
        }
    }
Ejemplo n.º 7
0
    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 LikeSearchBinder(PayFormCode, "PayFormCode"));
        binding.add(new LikeSearchBinder(PayFormDesc, "PayFormDesc"));
        binding.init(DecryptedRequest, null);

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

        if (!Page.IsPostBack)
        {
            view = loadData(info, db, Repeater);
        }
    }
Ejemplo n.º 8
0
    public DataView loadData(ListInfo info, DBManager db, Repeater repeater)
    {
        DBFilter filter = binding.createFilter();

        if (info != null && info.orderby != null && !info.orderby.Equals(""))
        {
            filter.add(info.orderby, info.order);
        }

        string select = "e.*";
        string from   = "from [" + db.dbclass.tableName + "] e ";

        filter.add(WebUtils.AddRankFilter(Session, "e.EmpID", true));

        DBFilter empPayrollFilter = new DBFilter();

        empPayrollFilter.add(Payroll_PeriodSelectionList1.GetEmpPayrollDBTerm("ep"));
        filter.add(new IN("e.EmpID", "SELECT DISTINCT ep.EmpID FROM " + EEmpPayroll.db.dbclass.tableName + " ep", empPayrollFilter));

        DBFilter payPeriodFilter = new SearchBinding(dbConn, EPayrollPeriod.db).createFilter();;

        payPeriodFilter.add(new IN("pp.PayPeriodID", "SELECT DISTINCT ep.PayPeriodID FROM " + EEmpPayroll.db.dbclass.tableName + " ep", empPayrollFilter));
        string    sqlStr         = " min(pp.PayPeriodFr) as PayPeriodFr, max(pp.PayPeriodTo) as PayPeriodTo ";
        string    fromStr        = " from [" + EPayrollPeriod.db.dbclass.tableName + "] pp ";
        DataTable payPeriodTable = payPeriodFilter.loadData(dbConn, null, sqlStr, fromStr);
        int       rowCount       = payPeriodTable.Rows.Count;

        if (rowCount > 0 && !string.IsNullOrEmpty(payPeriodTable.Rows[0]["PayPeriodFr"].ToString()))
        {
            filter.add(new Match("e.EmpDateOfJoin", ">=", ((DateTime)payPeriodTable.Rows[0]["PayPeriodFr"]).ToString("yyyy/MM/dd")));
            filter.add(new Match("e.EmpDateOfJoin", "<=", ((DateTime)payPeriodTable.Rows[0]["PayPeriodTo"]).ToString("yyyy/MM/dd")));
        }

        DBFilter empInfoFilter = EmployeeSearchControl1.GetEmpInfoFilter(AppUtils.ServerDateTime(), AppUtils.ServerDateTime());

        empInfoFilter.add(new MatchField("e.EmpID", "ee.EmpID"));
        filter.add(new Exists(EEmpPersonalInfo.db.dbclass.tableName + " ee", empInfoFilter));

        DataTable table = filter.loadData(dbConn, null, select, from);

        table = EmployeeSearchControl1.FilterEncryptedEmpInfoField(table, info);

        view = new DataView(table);
        if (repeater != null)
        {
            repeater.DataSource = view;
            repeater.DataBind();
        }

        return(view);
    }
Ejemplo n.º 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //PreRender += new EventHandler(Emp_Authorize_List_PreRender);

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

        //binding.add(new FieldDateRangeSearchBinder(EmpRequestFromDate, EmpRequestToDate, "EmpRequestCreateDate").setUseCurDate(false));

        // not supporting CL Requisition
        if (ESystemParameter.getParameter(dbConn, ESystemParameter.PARAM_CODE_ENABLE_OTCLAIM).Equals("N", 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("EmpRequestApprovalHistoryStatusBefore", null, EEmpRequest.VLRequestStatus, null);
        binding.initValues("EmpRequestApprovalHistoryStatusAfter", null, EEmpRequest.VLRequestStatus, null);
        // Start 0000180, KuangWei, 2015-03-25
        binding.add(new DropDownVLSearchBinder(LeaveCode, "L.LeaveCodeID", ELeaveCode.VLLeaveCode));
        binding.initValues("LeaveCode", null, ELeaveCode.VLLeaveCode, null);
        // End 0000180, KuangWei, 2015-03-25

        binding.init(Request.QueryString, null);

        info = ListFooter.ListInfo;

        EESSUser user = WebUtils.GetCurUser(Session);

        if (user != null)
        {
            CurID       = user.EmpID;
            EmpID.Value = CurID.ToString();
        }
    }
Ejemplo n.º 10
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)"));
        // Start 0000011, Miranda, 2014-06-10
        sbinding.add(new DropDownVLSearchBinder(LeaveCode, "LeaveCodeID", ELeaveCode.VLLeaveCode).setFilter(new DBFilter()));
        // End 0000011, Miranda, 2014-06-10
        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;
        }
    }
    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("AVCPlanIsResidual", null, Values.VLYesNo, HROne.Common.WebUtility.GetSessionCultureInfo(Session));
        binding.add(new LikeSearchBinder(AttendanceFormulaCode, "AttendanceFormulaCode"));
        binding.add(new LikeSearchBinder(AttendanceFormulaDesc, "AttendanceFormulaDesc"));


        binding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 12
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 DropDownVLSearchBinder(CompanyID, "CompanyID", ECompany.VLCompany, false));
        binding.add(new DropDownVLSearchBinder(HLevelID, "HLevelID", EHierarchyLevel.VLHierarchy, false));
        binding.add(new LikeSearchBinder(HElementCode, "HElementCode"));
        binding.add(new LikeSearchBinder(HElementDesc, "HElementDesc"));

        binding.init(DecryptedRequest, null);

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

        info = ListFooter.ListInfo;
    }
Ejemplo 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;
        if (!toolBar.DeleteButton_Visible)
        {
            WorkingSummaryAddPanel.Visible = false;
            //    Delete.Visible = false;
            IsAllowEdit = false;
        }

        //binding = new Binding(dbConn, EEmpPersonalInfo.db);
        //binding.add(EmpID);


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

        newBinding = new Binding(dbConn, db);
        newBinding.add(EmpID);
        newBinding.add(new TextBoxBinder(db, EmpWorkingSummaryAsOfDate.TextBox, EmpWorkingSummaryAsOfDate.ID));
        newBinding.add(EmpWorkingSummaryRestDayEntitled);
        newBinding.add(EmpWorkingSummaryRestDayTaken);
        newBinding.add(EmpWorkingSummaryTotalWorkingDays);
        newBinding.add(EmpWorkingSummaryTotalWorkingHours);
        newBinding.add(EmpWorkingSummaryTotalLunchTimeHours);

        newBinding.init(Request, Session);

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

        if (CurID <= 0)
        {
            WorkingSummaryAddPanel.Visible = false;
            toolBar.DeleteButton_Visible   = false;
            IsAllowEdit = false;
        }

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 14
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(CompanyCode, "CompanyCode"));
        binding.add(new LikeSearchBinder(CompanyName, "CompanyName"));
        binding.add(new LikeSearchBinder(CompanyAddress, "CompanyAddress"));
        binding.add(new LikeSearchBinder(CompanyContactPerson, "CompanyContactPerson"));
        binding.add(new LikeSearchBinder(CompanyBRNo, "CompanyBRNo"));
        binding.init(DecryptedRequest, null);

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

        info = ListFooter.ListInfo;

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

        if (WebUtils.TotalActiveCompany(dbConn, 0) >= WebUtils.productLicense(Session).NumOfCompanies)
        {
            toolBar.NewButton_Visible = false;
        }
        else
        {
            toolBar.NewButton_Visible = toolBar.DeleteButton_Visible;
        }
    }
Ejemplo n.º 15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session))
        {
            return;
        }


        EESSUser user = WebUtils.GetCurUser(Session);

        if (user != null)
        {
            m_ESSUserID = user.EmpID;
        }
        // Start 0000209, Miranda, 2015-06-11
        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
        // End 0000209, Miranda, 2015-06-11
        DateTime currentDate = AppUtils.ServerDateTime().Date;
        DBFilter empRosterTableGroupFilter = new DBFilter();

        empRosterTableGroupFilter.add(new Match("ertg.EmpID", m_ESSUserID));
        OR orEmpRosterTableGroupFromTerm = new OR();

        orEmpRosterTableGroupFromTerm.add(new Match("ertg.EmpRosterTableGroupEffFr", "<=", currentDate));
        orEmpRosterTableGroupFromTerm.add(new NullTerm("ertg.EmpRosterTableGroupEffFr"));
        empRosterTableGroupFilter.add(orEmpRosterTableGroupFromTerm);
        OR orEmpRosterTableGroupToTerm = new OR();

        orEmpRosterTableGroupToTerm.add(new Match("ertg.EmpRosterTableGroupEffTo", ">=", currentDate));
        orEmpRosterTableGroupToTerm.add(new NullTerm("ertg.EmpRosterTableGroupEffTo"));
        empRosterTableGroupFilter.add(orEmpRosterTableGroupToTerm);

        DBFilter RosterTableGroupIDFilter = new DBFilter();

        RosterTableGroupIDFilter.add(new IN("RosterTableGroupID", "SELECT ertg.RosterTableGroupID FROM " + EEmpRosterTableGroup.db.dbclass.tableName + " ertg", empRosterTableGroupFilter));
        sbinding = new SearchBinding(dbConn, ERosterClientSite.db);
        sbinding.add(new DropDownVLSearchBinder(RosterTableGroupID, "RosterTableGroupID", ERosterTableGroup.VLRosterTableGroup).setFilter(RosterTableGroupIDFilter));
        sbinding.init(DecryptedRequest, null);

        RosterTableGroupID.Items[0].Text = "All";


        HtmlLink cssLink = new HtmlLink();

        cssLink.Href = "~/CSS/RadScheduler.css";
        cssLink.Attributes.Add("rel", "stylesheet");
        cssLink.Attributes.Add("type", "text/css");
        Header.Controls.Add(cssLink);
    }
Ejemplo n.º 16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }

        empInfo = ListFooter.ListInfo;

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

        empSBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        empSBinding.add(new DropDownVLSearchBinder(ORSOPlanID, "ORSOPlanID", EORSOPlan.VLORSOPlan));
        empSBinding.init(DecryptedRequest, null);
    }
Ejemplo n.º 17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }

        if (ESystemParameter.getParameter(dbConn, ESystemParameter.PARAM_CODE_PAYSCALE_POINT_SYSTEM) != "Y")
        {
            HROne.Common.WebUtility.RedirectURLwithEncryptedQueryString(Response, Session, "~/AccessDeny.aspx");
            return;
        }

        toolBar.FunctionCode = FUNCTION_CODE;
        if (!WebUtils.CheckPermission(Session, FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite))
        {
            IsAllowEdit = false;
        }
        AddPanel.Visible    = IsAllowEdit;
        ImportPanel.Visible = IsAllowEdit;



        //binding = new Binding(dbConn, db);
        //binding.add(new TextBoxBinder(db, StatutoryHolidayDate.TextBox, StatutoryHolidayDate.ID));
        //binding.add(StatutoryHolidayDesc);
        //binding.init(Request, Session);


        binding = new Binding(dbConn, db);
        binding.add(new TextBoxBinder(db, EffectiveDate.TextBox, EffectiveDate.ID));
        binding.add(new TextBoxBinder(db, ExpiryDate.TextBox, ExpiryDate.ID));
        //binding.add(new TextBoxBinder(db, EffectiveDate.TextBox, EffectiveDate.ID));
        //binding.add(new TextBoxBinder(db, ExpiryDate.TextBox, ExpiryDate.ID));
        binding.add(SchemeCode);
        binding.add(Point);
        binding.add(Salary);

        binding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, db);
        sbinding.add(new DropDownVLSearchBinder(SchemeSelect, "SchemeCode", EPayScaleMap.VLDistinctSchemeList, true));
        sbinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 18
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);
    }
Ejemplo n.º 19
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, db);
        binding.add(CompanyID);
        binding.add(CompanyCode);
        binding.add(CompanyName);
        binding.add(CompanyAddress);
        binding.add(CompanyContactPerson);
        binding.add(CompanyContactNo);
        binding.add(CompanyFaxNo);
        binding.add(CompanyBRNo);
        binding.init(Request, Session);

        companyBankAccountSearchBinding = new SearchBinding(dbConn, ECompany.db);
        companyBankAccountSearchBinding.add(new HiddenMatchSearchBinder(CompanyID, "cbam.CompanyID"));
        companyBankAccountSearchBinding.init(DecryptedRequest, null);

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

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

        if (!Page.IsPostBack)
        {
            if (CurID > 0)
            {
                loadObject();
            }
            else
            {
                toolBar.DeleteButton_Visible = false;
            }
            LoadCompanyBankAccountList(ListFooter.ListInfo, companyBankAccountRepeater);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!WebUtils.CheckAccess(Response, Session, FUNCTION_CODE, WebUtils.AccessLevel.Read))
        {
            return;
        }

        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;");

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

        empInfo = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 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;

        AuthorizerPanel.Visible = WebUtils.CheckPermission(Session, AUTHORIZER_FUNCTION_CODE, WebUtils.AccessLevel.Read);
        btnAdd.Visible          = WebUtils.CheckPermission(Session, AUTHORIZER_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite);
        btnRemove.Visible       = WebUtils.CheckPermission(Session, AUTHORIZER_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite);
        SelectAllPanel.Visible  = btnRemove.Visible;


        binding = new Binding(dbConn, db);
        binding.add(AuthorizationGroupID);
        binding.add(AuthorizationCode);
        binding.add(AuthorizationDesc);
        //binding.add(new LabelVLBinder(db, AuthorizationGroupIsApproveEEInfo, Values.VLTrueFalseYesNo));
        //binding.add(new LabelVLBinder(db, AuthorizationGroupIsApproveLeave, Values.VLTrueFalseYesNo));
        binding.add(new LabelVLBinder(db, AuthorizationGroupIsReceiveOtherGrpAlert, Values.VLTrueFalseYesNo));

        binding.add(AuthorizationGroupEmailAddress);
        binding.init(Request, Session);

        SBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        SBinding.add(new HiddenMatchSearchBinder(AuthorizationGroupID));
        SBinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, null);
        SBinding.initValues("AuthorizerIsReadOnly", null, Values.VLYesNo, null);
        SBinding.initValues("AuthorizerSkipEmailAlert", null, Values.VLYesNo, null);
        SBinding.init(DecryptedRequest, null);

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

        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        EESSUser user = WebUtils.GetCurUser(Session);

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

        DBFilter leaveYearFilter = new DBFilter();

        leaveYearFilter.add(new Match("EmpID", CurID));
        leaveYearFilter.add(new Match("CompensationLeaveEntitleIsOTClaim", isOTClaim));
        sbinding = new SearchBinding(dbConn, sdb);
        sbinding.add(new DropDownVLSearchBinder(Year, "Year(CompensationLeaveEntitleEffectiveDate)", ECompensationLeaveEntitle.VLLeaveEntitleYear).setFilter(leaveYearFilter));//, null, "Year(pp.PayPeriodFR)"));

        sbinding.init(Request.QueryString, null);

        binding = new Binding(dbConn, sdb);
        binding.add(CompensationLeaveEntitleID);
        binding.add(EmpID);
        binding.add(CompensationLeaveEntitleEffectiveDate);
        binding.add(CompensationLeaveEntitleDateExpiry);
        binding.add(CompensationLeaveEntitleClaimPeriodFrom);
        binding.add(CompensationLeaveEntitleClaimPeriodTo);
        binding.add(CompensationLeaveEntitleClaimHourFrom);
        binding.add(CompensationLeaveEntitleClaimHourTo);
        binding.add(CompensationLeaveEntitleHoursClaim);
        binding.add(CompensationLeaveEntitleApprovedBy);
        binding.add(CompensationLeaveEntitleRemark);
        binding.init(Request, Session);

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

        info = ListFooter.ListInfo;
    }
Ejemplo n.º 23
0
    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 Binding(dbConn, 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.add(new HiddenMatchSearchBinder(TrainingSeminarID, "ete.TrainingSeminarID"));
        trainingEnrollBinding.initValues("EmpStatus", null, EEmpPersonalInfo.VLEmpStatus, null);
        trainingEnrollBinding.init(DecryptedRequest, null);


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

        info = ListFooter.ListInfo;

        TrainingSeminarEnrollPanel.Visible = WebUtils.CheckPermission(Session, ENROLL_FUNCTION_CODE, WebUtils.AccessLevel.Read);
        btnEnroll.Visible      = WebUtils.CheckPermission(Session, ENROLL_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite);
        btnRemove.Visible      = WebUtils.CheckPermission(Session, ENROLL_FUNCTION_CODE, WebUtils.AccessLevel.ReadWrite);
        SelectAllPanel.Visible = btnRemove.Visible;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
Ejemplo n.º 24
0
    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 Binding(dbConn, db);
        binding.add(ALProrataRoundingRuleID);
        binding.add(ALProrataRoundingRuleCode);
        binding.add(ALProrataRoundingRuleDesc);

        //Add
        ALProrataRoundingRuleDetailbinding = new Binding(dbConn, ALProrataRoundingRuleDetaildb);
        ALProrataRoundingRuleDetailbinding.add(ALProrataRoundingRuleID);
        ALProrataRoundingRuleDetailbinding.add(ALProrataRoundingRuleDetailRangeTo);
        ALProrataRoundingRuleDetailbinding.add(ALProrataRoundingRuleDetailRoundTo);
        ALProrataRoundingRuleDetailbinding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, ALProrataRoundingRuleDetaildb);
        sbinding.add(new HiddenMatchBinder(ALProrataRoundingRuleID));
        sbinding.init(DecryptedRequest, null);

        binding.init(Request, Session);

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

        info = ListFooter.ListInfo;

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

        Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);
    }
Ejemplo n.º 25
0
    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(CNDImportBatchID));
        sbinding.initValues("PayCodeID", null, EPaymentCode.VLPaymentCode, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("CurrencyID", null, Values.VLCurrency, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("CNDPayMethod", null, Values.VLPaymentMethod, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));
        sbinding.initValues("EmpAccID", null, EEmpBankAccount.VLBankAccount, null);

        sbinding.init(DecryptedRequest, null);

        binding = new Binding(dbConn, EClaimsAndDeductionsImportBatch.db);
        binding.add(CNDImportBatchDateTime);
        binding.add(CNDImportBatchID);
        binding.add(new LabelVLBinder(EClaimsAndDeductionsImportBatch.db, CNDImportBatchUploadedBy, EUser.VLUserName));
        binding.add(CNDImportBatchRemark);
        binding.init(Request, Session);

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


        info = ListFooter.ListInfo;

        HROne.Common.WebUtility.WebControlsLocalization(this, this.Controls);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        //Add
        RosterCodeDetailbinding = new Binding(dbConn, RosterCodeDetaildb);
        RosterCodeDetailbinding.add(RosterCodeID);
        RosterCodeDetailbinding.add(RosterCodeDetailNoOfHour);
        RosterCodeDetailbinding.add(RosterCodeDetailRate);
        RosterCodeDetailbinding.init(Request, Session);

        sbinding = new SearchBinding(dbConn, RosterCodeDetaildb);
        sbinding.add(new HiddenMatchBinder(RosterCodeID));
        sbinding.init(DecryptedRequest, null);

        info = ListFooter.ListInfo;

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

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

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

        empInfo = ListFooter.ListInfo;

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

        empSBinding = new SearchBinding(dbConn, EEmpPersonalInfo.db);
        empSBinding.add(new DropDownVLSearchBinder(ORSOPlanID, "ORSOPlanID", EORSOPlan.VLORSOPlan));
        empSBinding.init(DecryptedRequest, null);

        // Start 0000140, Ricky So, 201/12/15
        //if (!Page.IsPostBack)
        //{
        //    empView = emploadData(empInfo, EEmpPayroll.db, empRepeater);
        //}
        // End 0000140, Ricky So, 201/12/15
    }
    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(ESSAnnouncementCode, "ESSAnnouncementCode"));
        //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)
    {
        Delete.OnClientClick = HROne.Translation.PromptMessage.CreateDeleteConfirmDialogJavascript(Delete);

        sBinding = new SearchBinding(dbConn, db);
        sBinding.add(new HiddenMatchBinder(EmpPayrollID));
        sBinding.initValues("ORSOPlanID", null, EORSOPlan.VLORSOPlan, HROne.Common.WebUtility.GetSessionUICultureInfo(Session));

        sBinding.init(DecryptedRequest, null);

        newBinding = new Binding(dbConn, db);
        newBinding.add(EmpPayrollID);
        newBinding.add(new TextBoxBinder(db, ORSORecPeriodFr.TextBox, ORSORecPeriodFr.ID));
        newBinding.add(new TextBoxBinder(db, ORSORecPeriodTo.TextBox, ORSORecPeriodTo.ID));
        newBinding.add(ORSORecActRI);
        newBinding.add(ORSORecActEE);
        newBinding.add(ORSORecActER);
        newBinding.add(new DropDownVLBinder(db, ORSOPlanID, EORSOPlan.VLORSOPlan));

        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))
        {
            EmployeeSelectAllPanel.Visible = false;
            IsAllowEdit = false;
        }

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

        empInfo = ListFooter.ListInfo;

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

        mpfFileControl = getMPFFileControl();
    }