Beispiel #1
0
        public void UpdateListPlan(List <MBO_Plan> plans, string APPROVER)
        {
            ResultMange rm = new ResultMange();
            UserManager um = new UserManager();

            foreach (var plan in plans)
            {
                string emp_id = rm.GetEmpIdByResult(plan.RESULT_ID);
                int    role   = um.CheckRole(emp_id, APPROVER);
                int    t      = UpdatePlan(plan, role);
            }
        }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["EMP_ID"] == null)
                {
                    Response.Redirect("Login.aspx");
                }
                var period_id = Request.QueryString["eva"];
                var group     = Request.QueryString["group"];
                var wgroup    = Request.QueryString["w"];
                var query     = Request.QueryString["query"];
                var plan      = Request.QueryString["plan"];

                UserManager um = new UserManager();
                ResultMange rm = new ResultMange();
                Groups   = um.GetEvagroup();
                WGroups  = um.GetWorkgroup();
                Periods  = um.GetPeriod();
                Duration = Periods[0].EVA_START.ToShortDateString() + "~" + Periods[0].EVA_END.ToShortDateString();
                if (group == null)
                {
                    Result1 = rm.GetMBOResult(Periods[0].EVA_TIME, 1, "", "");
                }
                else
                {
                    if (query == null && wgroup == null)
                    {
                        Result1 = rm.GetMBOResult(period_id, Convert.ToInt32(group));
                    }
                    else
                    {
                        Result1 = rm.GetMBOResult(period_id, Convert.ToInt32(group), query, wgroup);
                    }
                }
            }
        }