public ActionResult EmployeeLeave()
        {
            webs_YueyxShop.Model.EmployeeBase model = new webs_YueyxShop.Model.EmployeeBase();
            this.ViewData["hfOtype"] = RequestBase.GetString("otype");

            switch (ViewData["hfOtype"].ToString())
            {
                case "ELeave":
                    ViewData["hfEid"] = RequestBase.GetString("e_ID");

                    model = _employeeBase.GetModel(new Guid(RequestBase.GetString("e_ID")));
                    ViewData["txtELname"] = model.e_MingC;
                    ViewData["txtLGongh"] = model.e_GongH;
                    break;
                default:
                    break;
            }
            return View();
        }
 public ActionResult TeacherEdit()
 {
     ViewData["IsHasFunRole"] = _roleManager.IsHasFunRole(EmployeeBase.e_ID, "002006001"); //是否拥有管理的权限
     BindTypeDLL();
     this.ViewData["hfOtype"] = RequestBase.GetString("otype");
     this.ViewData["departId"] = RequestBase.GetString("o_ID");
     this.ViewData["o_ID"] = RequestBase.GetString("o_ID"); //部门编辑页面员工列表
     ViewData["EmployeeBaseEdit_Type"] = "true";
         //new CRM.Public.RoleManager().IsHasFunRole(EmployeeInfo.e_ID, "006008001");//管理权限
     if (RequestBase.GetString("type") == "details")
     {
         ViewData["EmployeeBaseEdit_Type"] = "false";
     }
     switch (ViewData["hfOtype"].ToString())
     {
         case "modify":
             ViewData["hfEid"] = RequestBase.GetString("e_ID");
             EmployeeBaseObj = _employeeBase.GetModel(new Guid(RequestBase.GetString("e_ID")));
             break;
         case "details":
             ViewData["hfEid"] = RequestBase.GetString("e_ID");
             EmployeeBaseObj = _employeeBase.GetModel(new Guid(RequestBase.GetString("e_ID")));
             break;
         default:
             EmployeeBaseObj = new webs_YueyxShop.Model.EmployeeBase(); //添加时,set值
             break;
     }
     return View();
 }
 public ActionResult EmployeeEdit()
 {
     BindTypeDLL();
     //ViewData["LeiB"] = new BindControl().BindSysCodeBase("0006", 2, false, false);
     ViewData["LeiB"] = new BindControl().BindSysCodeBaseForCheckBoxList("0006", 2, false);
     this.ViewData["hfOtype"] = RequestBase.GetString("otype");
     ViewData["IsHasFunRole"] = _roleManager.IsHasFunRole(EmployeeBase.e_ID, "001002001"); //是否拥有管理的权限
     if (RequestBase.GetString("type") == "details")
     {
         ViewData["EmployeeBaseEdit_Type"] = "false";
     }
     if (!string.IsNullOrEmpty(RequestBase.GetString("d_ID")))
     {
         this.ViewData["o_ID"] = RequestBase.GetString("d_ID");
         this.ViewData["departId"] = RequestBase.GetString("d_ID");
         this.ViewData["departname"] = _departmentBase.GetModel(new Guid(RequestBase.GetString("d_ID"))).d_MingCh;
     }
     switch (ViewData["hfOtype"].ToString())
     {
         case "modify":
             ViewData["hfEid"] = RequestBase.GetString("e_ID");
             EmployeeBaseObj = _employeeBase.GetModel(new Guid(RequestBase.GetString("e_ID")));
             //ViewData["LeiBValue"] = EmployeeLeibBaseBLL.GetFunctionCodes(new Guid(RequestBase.GetString("e_ID")));
             break;
         case "details":
             ViewData["hfEid"] = RequestBase.GetString("e_ID");
             EmployeeBaseObj = _employeeBase.GetModel(new Guid(RequestBase.GetString("e_ID")));
             //ViewData["LeiBValue"] = EmployeeLeibBaseBLL.GetFunctionCodes(new Guid(RequestBase.GetString("e_ID")));
             break;
         default:
             EmployeeBaseObj = new webs_YueyxShop.Model.EmployeeBase(); //添加时,set值
             break;
     }
     return View();
 }