Exemplo n.º 1
0
        /// <summary>
        /// 企业信息获取数据源
        /// </summary>
        /// <returns></returns>
        public ActionResult GetManage(FormCollection form)
        {
            bll = operateContext.bllSession;
            List <B01> list = bll.B01.GetB01Info().Where(o => o.UnitID.Length == 3).ToList();
            var        data = list.AsEnumerable();

            if (!string.IsNullOrEmpty(form["UnitID"]))
            {
                data = data.Where(o => o.UnitID == form["UnitID"].Trim());
            }
            //else
            //{
            //    data = data.Where(o => o.UnitID == operateContext.bllSession.B01.GetB01PerData(operateContext.Usr.user_id)[0].UnitID);
            //}
            if (!string.IsNullOrEmpty(form["txtSearchName"]))
            {
                string unitName = form["txtSearchName"].Trim();
                data = data.Where(o => o.UnitName.Contains(unitName));
            }

            string returnJson = string.Empty;
            int    page       = int.Parse(form["page"]);
            int    rows       = int.Parse(form["rows"]);
            var    dataPage   = data.Skip((page * rows) - rows).Take(rows);

            returnJson = "{\"total\":" + data.Count() + ",\"rows\":" + HCQ2_Common.JsonHelper.ObjectToJson(dataPage) + "}";
            return(Content(returnJson));
        }
Exemplo n.º 2
0
        /// <summary>
        /// 添加或者编辑员工工资发放登记
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        public ActionResult PersonWageAdd(FormCollection form)
        {
            bll = operateContext.bllSession;
            string returnStr = bll.A03.OperWage(form) ? "ok" : "find";

            return(Content(returnStr));
        }
Exemplo n.º 3
0
 /// <summary>
 /// 工时月信息获取table数据源
 /// </summary>
 /// <param name="form"></param>
 /// <returns></returns>
 public ActionResult GetAttendinfo(FormCollection form)
 {
     bll = operateContext.bllSession;
     int page = int.Parse(form["page"]);
     int rows = int.Parse(form["rows"]);
     string yearStr = DateTime.Now.Year.ToString();
     string monthStr = DateTime.Now.Month.ToString();
     if (!string.IsNullOrEmpty(form["txtSearchDate"]))
     {
         string[] searchDate = form["txtSearchDate"].ToString().Split('-');
         yearStr = searchDate[0];
         monthStr = searchDate[1];
     }
     DataTable dt = bll.A01.GetAttendance(yearStr, monthStr);
     if (!string.IsNullOrEmpty(form["UnitID"]))
     {
         dt = dt.Select("UnitID='" + form["UnitID"].Trim() + "'").CopyToDataTable();
     }
     else
     {
         dt = dt.Select("UnitID='" + operateContext.bllSession.B01.GetB01PerData(operateContext.Usr.user_id)[0].UnitID + "'").CopyToDataTable();
     }
     if (!string.IsNullOrEmpty(form["txtSearchName"]))
     {
         dt = dt.Select("A0101 like '%" + form["txtSearchName"].Trim() + "%'").CopyToDataTable();
     }
     TableModel model = new TableModel();
     if (dt.Rows.Count > 0)
     {
         List<AttendanceModel> attList = HCQ2_Common.Data.DataTableHelper.DataTableToIList<AttendanceModel>(dt);
         model.rows = attList.Skip((page * rows) - rows).Take(rows);
         model.total = attList.Count();
     }
     return Json(model, JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 4
0
        public ActionResult ProjectFbdw()
        {
            bll = operateContext.bllSession;
            List <T_CompProInfo> comList = operateContext.bllSession.T_CompProInfo.GetComPro();

            ViewBag.TreeJson = HCQ2_Common.JsonHelper.objectToJsonStr(
                operateContext.bllSession.T_CompProInfo.GetComTreeModle(comList));

            //数据字典
            ViewBag.GSDJZZZL = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("GSDJZZZL").item_id);
            ViewBag.JJLX = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("JJLX").item_id);
            ViewBag.LSGX = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("QXLSGX").item_id);
            ViewBag.JYFS = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("JYFS").item_id);
            ViewBag.DJZCLX = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("DJZCLX").item_id);
            ViewBag.HYDM = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("HYDM").item_id);
            ViewBag.JGLB = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("JGLB").item_id);
            ViewBag.Dwlx = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("Dwlx").item_id);
            ViewBag.QXLB = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("QYLSZBFB").item_id);
            ViewBag.QXLBJSON = HCQ2_Common.JsonHelper.objectToJsonStr(ViewBag.QXLB);

            List <SM_CodeItems> listCodeItem = bll.SM_CodeItems.GetCodeItemByCodeID("AB").ToList();

            ViewBag.SSWG = HCQ2_Common.JsonHelper.objectToJsonStr(operateContext.bllSession.SM_CodeItems.GetCodeItemTree(listCodeItem));

            return(View());
        }
Exemplo n.º 5
0
        /// <summary>
        /// 获取企业目录树(根据权限)
        /// </summary>
        /// <returns></returns>
        public ActionResult GetEnterByUserID()
        {
            bll = operateContext.bllSession;
            var data = bll.B01.GetPerUserAreaUnit(operateContext.Usr.user_id);

            return(Content(HCQ2_Common.JsonHelper.objectToJsonStr(data)));
        }
Exemplo n.º 6
0
        //学历学位信息

        /// <summary>
        /// 获取学位学历信息
        /// </summary>
        /// <param name="RowID"></param>
        /// <returns></returns>
        public ActionResult GetEdu(string RowID)
        {
            bll = operateContext.bllSession;
            string PersonID = bll.A01.GetByRowID(RowID).PersonID;

            return(Content(HCQ2_Common.ReturnJson.GetReturnJson <A04>(bll.A04.GetCodeItemA04(bll.A04.GetByPersonID(PersonID)), 1, 9999)));
        }
Exemplo n.º 7
0
        /// <summary>
        /// 删除人员信息
        /// </summary>
        /// <param name="RowID"></param>
        /// <returns></returns>
        public ActionResult DeletePerson(string RowID)
        {
            bll = operateContext.bllSession;
            string returnStr = bll.A01.Delete(o => o.RowID == RowID) > 0 ? "ok" : "find";

            return(Content(returnStr));
        }
Exemplo n.º 8
0
 public ActionResult DocumentDetail(string documentID)
 {
     bll              = operateContext.bllSession;
     ViewBag.Title    = "政策详细信息";
     ViewBag.Document = bll.BMQ_Document.GetByDocumentID(documentID);
     return(View("DocumentDetail"));
 }
Exemplo n.º 9
0
        //员工工资发放登记

        /// <summary>
        /// 员工工资发放登记数据源
        /// </summary>
        /// <param name="RowID"></param>
        /// <returns></returns>
        public ActionResult GetPersonWage(string RowID)
        {
            bll = operateContext.bllSession;
            var data = bll.A03.GetByPersonID(bll.A01.GetByRowID(RowID).PersonID);

            return(Content(HCQ2_Common.ReturnJson.GetReturnJson <A03>(data, 1, 999)));
        }
Exemplo n.º 10
0
        public ActionResult GetTreeList(int type)
        {
            bll = operateContext.bllSession;
            var data = bll.B01.GetPerUserAreaUnitInfo(type != 0 ? operateContext.Usr.user_id : 0);

            return(Content(HCQ2_Common.JsonHelper.objectToJsonStr(data)));
        }
Exemplo n.º 11
0
        /// <summary>
        /// 根据UnitID获取详细信息
        /// </summary>
        /// <param name="unit_id"></param>
        /// <returns></returns>
        public ActionResult IndexDetail(string unit_id)
        {
            bll = operateContext.bllSession;
            var data = bll.B01.GetByUnitID(unit_id);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 12
0
        /// <summary>
        /// 编辑学历学位信息
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        public ActionResult PersonEduEdit(FormCollection form)
        {
            bll = operateContext.bllSession;
            string returnStr = bll.A04.EditEdu(form) ? "ok" : "find";

            return(Content(returnStr));
        }
Exemplo n.º 13
0
        public ActionResult UnitPerfect()
        {
            bll = operateContext.bllSession;
            List <HCQ2_Model.TreeModel.B01PerTreeModel> list = operateContext.bllSession.B01.GetB01PerData(operateContext.Usr.user_id);

            ViewBag.json           = bll.B01.GetTreeString(bll.B01.GetB01Info().Where(o => o.KeyParent == ".").ToList());
            ViewBag.UnitType       = bll.SM_CodeItems.GetCodeItemByCodeID("SMOT");
            ViewBag.B0175          = bll.SM_CodeItems.GetCodeItemByCodeID("CP");
            ViewBag.B0117          = bll.SM_CodeItems.GetCodeItemByCodeID("45");
            ViewBag.project_status = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("project_status").item_id);

            ViewBag.SSXZZGBM = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("SSXZZGBM").item_id);
            ViewBag.GSDJZZZL = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("GSDJZZZL").item_id);
            ViewBag.GCLB = HCQ2_Common.JsonHelper.objectToJsonStr(bll.T_ItemCodeMenum.GetByItemId(
                                                                      bll.T_ItemCode.GetByItemCode("ZCLB").item_id));
            //行政区域代码目录树
            List <SM_CodeItems> listCodeItem = bll.SM_CodeItems.GetCodeItemByCodeID("AB").ToList();

            ViewBag.AB = HCQ2_Common.JsonHelper.objectToJsonStr(operateContext.bllSession.SM_CodeItems.GetCodeItemTree(listCodeItem));

            ViewBag.in_compay  = bll.T_CompProInfo.GetComPro().Where(o => o.QXLB == "01").ToList();
            ViewBag.ComName    = HCQ2_Common.JsonHelper.objectToJsonStr(ViewBag.in_compay);
            ViewBag.GZFFZHSSYH = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("SSYH").item_id);
            ViewBag.upLoadId = bll.B01.GetPerUnitByUserID(operateContext.Usr.user_id);
            return(View());
        }
Exemplo n.º 14
0
        /// <summary>
        /// 验证是否重复注册
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        public ActionResult ValidateUnitPerson(FormCollection form)
        {
            bll = operateContext.bllSession;
            string identify_code = form["A0177"];
            string unit_id       = form["B00011"];
            string result        = bll.A01.ValidatePerson(identify_code, unit_id) ? "ok" : "fin";

            return(Content(result));
        }
Exemplo n.º 15
0
        public ActionResult NewPerson()
        {
            bll = operateContext.bllSession;
            List <HCQ2_Model.TreeModel.B01PerTreeModel> list = operateContext.bllSession.B01.GetB01PerData(operateContext.Usr.user_id);

            ViewBag.TreeJson = HCQ2_Common.JsonHelper.ObjectToJson(list).ToString();
            ViewBag.UnitID   = operateContext.bllSession.B01.GetUnitDataByPermiss(
                operateContext.Usr.user_id).FirstOrDefault().UnitID;
            return(View());
        }
Exemplo n.º 16
0
        public ActionResult VlidataItemCode(string item_code)
        {
            string result = "find";

            bll = operateContext.bllSession;
            if (bll.T_ItemCode.ValidataItemCode(item_code))
            {
                result = "ok";
            }
            return(Content(result));
        }
Exemplo n.º 17
0
        public ActionResult Edit(FormCollection form)
        {
            string result = "find";

            bll = operateContext.bllSession;
            if (bll.T_ItemCode.EditItemCode(form))
            {
                result = "ok";
            }
            return(Content(result));
        }
Exemplo n.º 18
0
        /// <summary>
        /// 首页
        /// </summary>
        /// <returns></returns>
        public ActionResult List()
        {
            bll = operateContext.bllSession;

            //推送代办事宜
            bll.T_TodoList.WriteRepostLog(operateContext.Usr.user_id);

            //总人数
            ViewBag.Count = bll.A01.GetPeopleSum(operateContext.Usr.user_id);

            //今日到岗人员
            ViewBag.Attendance = bll.View_A02.GetAttendanceTrue(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, operateContext.Usr.user_id.ToString());

            //工地数量
            ViewBag.UnitTypeM = bll.B01.GetProjectCount(operateContext.Usr.user_id.ToString());

            //欠薪金额、欠薪人数
            DataTable dt = bll.View_QXTJ.GetStaticWagePerson(operateContext.Usr.user_id);

            ViewBag.QxWage  = dt.Rows[0]["wage"];
            ViewBag.QxCount = dt.Rows[0]["count"];

            //待整改
            ViewBag.WGJGZX = bll.T_EnterDetail.GetEnterByUserid(operateContext.Usr.user_id).Count();

            //政策信息
            ViewBag.BMQ = bll.BMQ_Document.GetDocumentSortName(bll.BMQ_Document.GetDocumentInfo());

            //欠薪统计:金额
            ViewBag.QXTJMoney = bll.View_QXTJ.GetDebtUnitDataByPermissTopSeven();

            //欠薪统计:人数
            ViewBag.QXTJPerson = bll.View_QXTJ.GetDebtPersonByPermissTopSeren();

            //待办事宜
            ViewBag.DBSY = bll.T_TodoList.SendTodo(operateContext.Usr.user_id);

            //工种人数统计
            List <string> ListJobs  = new List <string>();
            List <int>    ListCount = new List <int>();

            bll.A01.StaticJobsCoumt(operateContext.Usr.user_id, ref ListJobs, ref ListCount);
            ViewBag.Jobs      = HCQ2_Common.JsonHelper.objectToJsonStr(ListJobs);
            ViewBag.JobsCount = HCQ2_Common.JsonHelper.objectToJsonStr(ListCount);

            //新闻公告
            List <T_MessageNotice> messList = operateContext.bllSession.T_MessageNotice.GetAllMess();

            ViewBag.Mess = messList.Take(4).ToList();

            return(View("List"));
        }
Exemplo n.º 19
0
        /// <summary>
        /// 删除部门
        /// </summary>
        /// <param name="RowID"></param>
        /// <returns></returns>
        public ActionResult Delete(string RowID)
        {
            bll = operateContext.bllSession;
            string returnJson = bll.B01.Delete(o => o.RowID == RowID) > 0 ? "ok" : "find";

            if (returnJson == "ok")
            {
                B01    unit   = bll.B01.GetByRowID(RowID);
                string UnitID = unit.UnitID;
                bll.A01.Delete(o => o.UnitID == UnitID);
            }
            return(Content(returnJson));
        }
Exemplo n.º 20
0
        /// <summary>
        /// 获取重复用工显示数据
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        public ActionResult GetReaptData(FormCollection form)
        {
            bll = operateContext.bllSession;
            DataTable dt   = bll.A01.GetReaptPerson();
            int       page = int.Parse(form["page"]);
            int       rows = int.Parse(form["rows"]);
            var       data = dt.AsEnumerable();

            if (!string.IsNullOrEmpty(form["txtSearchName"]))
            {
                data = data.Where(o => o.Field <string>("A0101") == form["txtSearchName"].Trim());
            }
            var    dataJson   = data.Skip((page * rows) - rows).Take(rows);
            string viewJson   = dataJson.Count() > 0 ? HCQ2_Common.JsonHelper.DataTableToJson(dataJson.CopyToDataTable()) : "[]";
            string returnJson = "{\"total\":" + data.Count() + ",\"rows\":" + viewJson + "}";

            return(Content(returnJson));
        }
Exemplo n.º 21
0
        /// <summary>
        /// 根据code获取name
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        public ActionResult GetaAreaName(string code)
        {
            if (string.IsNullOrEmpty(code))
            {
                return(Content(""));
            }
            bll = operateContext.bllSession;
            List <SM_CodeItems> listCodeItem = bll.SM_CodeItems.GetCodeItemByCodeID("AB").ToList();
            string codeName = "";

            try
            {
                codeName = listCodeItem.Where(o => o.CodeItemID == code).FirstOrDefault().CodeItemName;
            }
            catch (Exception e)
            {}
            return(Content(codeName));
        }
Exemplo n.º 22
0
        /// <summary>
        /// 获取代码型字段
        /// </summary>
        /// <param name="RowID"></param>
        /// <returns></returns>
        public ActionResult GetEditDropValue(string RowID)
        {
            bll = operateContext.bllSession;
            var    b     = bll.B01.GetB01Info().Where(o => o.RowID == RowID).FirstOrDefault();
            string B0175 = " ";

            if (!string.IsNullOrEmpty(b.B0175))
            {
                B0175 = bll.SM_CodeItems.GetCodeItemByCodeID("CP").Where(o => o.CodeItemID == b.B0175).FirstOrDefault().CodeItemName;
            }
            string B0117 = " ";

            if (!string.IsNullOrEmpty(b.B0117))
            {
                B0117 = bll.SM_CodeItems.GetCodeItemByCodeID("45").Where(o => o.CodeItemID == b.B0117).FirstOrDefault().CodeItemName;
            }
            return(Content(B0175 + "," + B0117));
        }
Exemplo n.º 23
0
 /// <summary>
 /// 获取数据查询公共方法
 /// </summary>
 /// <param name="form"></param>
 /// <returns></returns>
 private DataTable GetWorkView(FormCollection form)
 {
     bll = operateContext.bllSession;
     DataTable dt = bll.WGJG02.GetWGJG02DataTable();
     if (!string.IsNullOrEmpty(form["UnitID"]))
     {
         dt = dt.Select("UnitID='" + form["UnitID"].Trim() + "'").CopyToDataTable();
     }
     else
     {
         dt = dt.Select("UnitID='" + operateContext.bllSession.B01.GetB01PerData(operateContext.Usr.user_id)[0].UnitID + "'").CopyToDataTable();
     }
     if (!string.IsNullOrEmpty(form["txtSearchName"]))
     {
         dt = dt.Select("UnitID like '%" + form["txtSearchName"].Trim() + "%'").CopyToDataTable();
     }
     return dt;
 }
Exemplo n.º 24
0
        /// <summary>
        /// 编辑单位、部门
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        public ActionResult Edit(FormCollection form)
        {
            bll = operateContext.bllSession;
            string returnJson = bll.B01.EditUnit(form) ? "ok" : "find";

            //if (returnJson == "ok")
            //{
            //    string UnitName = form["UnitName"];
            //    try
            //    {
            //        string UnitID = operateContext.bllSession.B01.GetByUnitName(UnitName).UnitID;
            //        operateContext.bllSession.B01.UpDataProject(UnitID);
            //    }
            //    catch (Exception ex)
            //    {
            //        string error = ex.ToString();
            //    }
            //}
            return(Content(returnJson));
        }
Exemplo n.º 25
0
        /// <summary>
        /// 员工工资发放登记
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        public ActionResult GetWageInfo(FormCollection form)
        {
            bll = operateContext.bllSession;
            int        page     = int.Parse(form["page"]);
            int        rows     = int.Parse(form["rows"]);
            string     PersonID = form["PersonID"];
            List <A03> list     = bll.A03.GetByPersonID(PersonID);

            string returnJson = "";

            if (list.Count() > 0)
            {
                returnJson = "{\"total\":" + list.Count() + ",\"rows\":" + HCQ2_Common.JsonHelper.ObjectToJson(list.Skip((page * rows) - rows).Take(rows)) + "}";
            }
            else
            {
                returnJson = "{\"total\":\"0\",\"rows\":[]}";
            }
            return(Content(returnJson));
        }
Exemplo n.º 26
0
        public ActionResult ArchiveDetail(string PersonID)
        {
            bll = operateContext.bllSession;
            A01 user = bll.A01.GetBySmCodeItem(bll.A01.GetByPersonID(PersonID));

            ViewBag.title        = "人员详细信息";
            ViewBag.persondetail = user;
            ViewBag.Content      = HCQ2_Common.JsonHelper.objectToJsonStr(user);

            string personPhoto = "";

            if (user.PersonPhoto != null)
            {
                string image       = "File/ReadPhoto/" + user.A0101;
                byte[] PersonPhoto = user.PersonPhoto;
                string str         = HCQ2_Common.ImageHelper.CreateImageFromBytes(HttpContext.Server.MapPath(image), user.A0101, PersonPhoto);
                personPhoto = image + "/" + str;
            }
            ViewBag.photo = personPhoto;

            return(View());
        }
Exemplo n.º 27
0
        public ActionResult InsertNewPerson(FormCollection form)
        {
            bll = operateContext.bllSession;
            string result = bll.A01.AddPerson(form);

            //if (result.Substring(0, 2) == "ok")
            //{
            //    //保存成功,则上报
            //    try
            //    {
            //        string UnitID = form["B00011"];
            //        string IndentifyCode = form["A0177"];
            //        operateContext.bllSession.A01.UpLoadPerson(UnitID, IndentifyCode);
            //        //UpDataPerson(form);
            //    }
            //    catch (Exception ex)
            //    {
            //        string error = ex.ToString();
            //    }
            //}
            return(Content(result));
        }
Exemplo n.º 28
0
        public ActionResult GetWorkTime(FormCollection form)
        {
            bll = operateContext.bllSession;
            int page = int.Parse(form["page"]);
            int rows = int.Parse(form["rows"]);
            int skip = (page * rows) - rows;

            string returnJson = string.Empty;

            if (string.IsNullOrEmpty(form["isType"].Trim()) || form["isType"] == "已签到")
            {
                List <HCQ2_Model.ViewModel.CheckModle> list = bll.View_A02.GetCheckCount(bll.View_A02.CheckPerson(form));
                var data = list.AsEnumerable();
                if (!string.IsNullOrEmpty(form["search"]))
                {
                    data = data.Where(o => o.A0101.Contains(form["search"].Trim()));
                }
                list = data.ToList();
                var dataJson = list.Skip(skip).Take(rows).ToList();
                returnJson = "{\"total\":" + list.Count() + ",\"rows\":" + HCQ2_Common.JsonHelper.ObjectToJson(dataJson.ToList()) + "}";
            }
            else
            {
                //未签到
                var PersonData = bll.View_A02.GetView(form);
                if (PersonData.Rows.Count > 0)
                {
                    var Json = PersonData.AsEnumerable().Skip(skip).Take(rows).CopyToDataTable();
                    returnJson = "{\"total\":" + PersonData.Rows.Count + ",\"rows\":" + HCQ2_Common.JsonHelper.DataTableToJson(Json) + "}";
                }
                else
                {
                    returnJson = "{\"total\":0,\"rows\":[]}";
                }
            }
            return(Content(returnJson));
        }
Exemplo n.º 29
0
 public ActionResult GetItemCodeView(FormCollection form)
 {
     bll = operateContext.bllSession;
     return(Content(bll.T_ItemCode.ReturnPageJson(form)));
 }
Exemplo n.º 30
0
        /// <summary>
        /// 具体新增人员的办法
        /// </summary>
        /// <param name="unit_id"></param>
        /// <returns></returns>
        public ActionResult NewPersonDetail(string RowID, string UnitID)
        {
            bll = operateContext.bllSession;
            List <HCQ2_Model.TreeModel.B01PerTreeModel> list = operateContext.bllSession.B01.GetB01PerData(operateContext.Usr.user_id);

            ViewBag.TreeJson = HCQ2_Common.JsonHelper.ObjectToJson(list).ToString();
            ViewBag.PClassID = bll.SM_CodeItems.GetCodeItemByCodeID("C");
            ViewBag.B0003    = bll.SM_CodeItems.GetCodeItemByCodeID("J");
            ViewBag.A0107    = bll.SM_CodeItems.GetCodeItemByCodeID("AX");
            ViewBag.A0108    = bll.SM_CodeItems.GetCodeItemByCodeID("JDXL");
            ViewBag.A0121    = bll.SM_CodeItems.GetCodeItemByCodeID("AE");
            ViewBag.A0114    = bll.SM_CodeItems.GetCodeItemByCodeID("AB");
            ViewBag.A0110    = bll.SM_CodeItems.GetCodeItemByCodeID("HP");
            ViewBag.A0127    = bll.SM_CodeItems.GetCodeItemByCodeID("BG");
            ViewBag.A0128    = bll.SM_CodeItems.GetCodeItemByCodeID("AT");

            //学历编辑这边的记录
            ViewBag.C0401 = bll.SM_CodeItems.GetCodeItemByCodeID("KF");

            //所在工区字典
            ViewBag.A0181 = bll.T_ItemCodeMenum.GetByItemId(bll.T_ItemCode.GetByItemCode("JobsAreaType").item_id);

            //所属队伍,从企业表获取
            ViewBag.InTeam = bll.T_CompProInfo.GetInTeamByUnitID(UnitID);

            //编辑
            string PersonEduJson = "";
            string photo         = "";

            if (!string.IsNullOrEmpty(RowID))
            {
                DataTable dt = bll.A01.GetA01ItemByRowID(RowID);
                //string strSmall = dt.Rows[0]["A0118"].ToString();
                //string strBig = dt.Rows[0]["big_iris_data"].ToString();
                //byte[] sm = Convert.FromBase64String(strSmall);
                //string ww = byteToHexStr(sm);

                PersonEduJson = HCQ2_Common.JsonHelper.DataTableToJson(dt);

                string timeStr     = DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + DateTime.Now.Minute.ToString();
                string image       = "File/ReadPhoto/" + dt.Rows[0]["A0101"];
                byte[] PersonPhoto = bll.A01.GetByRowID(RowID).PersonPhoto;
                string str         = "";
                if (PersonPhoto != null)
                {
                    str   = HCQ2_Common.ImageHelper.CreateImageFromBytes(HttpContext.Server.MapPath(image), dt.Rows[0]["A0101"].ToString(), PersonPhoto);
                    photo = image + "/" + str;
                }
            }
            ViewBag.photo = photo;
            ViewBag.Edu   = PersonEduJson;

            //上报数据
            ViewBag.SSDWLB = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("DWLX").item_id);
            ViewBag.SSDWZW = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("SSDWZW").item_id);
            ViewBag.GZGZHDFS = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("GZGZHDFS").item_id);
            ViewBag.SSBZ = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("SSBZ").item_id);

            ViewBag.NMGZHSSYH = bll.T_ItemCodeMenum.GetByItemId(
                bll.T_ItemCode.GetByItemCode("SSYH").item_id);

            return(View());
        }