// GET: CAS/ContractField
 public ActionResult Index(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     if (IsPost)
     {
         return(Json(AjaxResult.Success(BusinessDataService.ContractFieldService.ForGrid(grid))));
     }
     return(View());
 }
Beispiel #2
0
 public ActionResult PRIndex(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     if (IsPost)
     {
         return(Json(AjaxResult.Success(BusinessDataService.POService.ForPRIndexGrid(grid)), JsonRequestBehavior.AllowGet));
     }
     return(View());
 }
 /// <summary>
 /// 上传盖章合同
 /// </summary>
 /// <param name="grid"></param>
 /// <param name="data"></param>
 /// <returns></returns>
 public ActionResult StampContract(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     if (IsPost)
     {
         return(Json(AjaxResult.Success(BusinessDataService.ContractApplayService.UploadStampContract(grid))));
     }
     return(View());
 }
 public ActionResult Index(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     if (IsPost)
     {
         return(Json(AjaxResult.Success(SystemService.UserService.ForGrid(grid))));
     }
     return(View());
 }
Beispiel #5
0
 public ActionResult DownloadContractTepPage(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     if (IsPost)
     {
         //关于下载页面的查询条件后台还没有做限制
         return(Json(AjaxResult.Success(BusinessDataService.ContractTemplateService.DownloadContractTep(grid))));
     }
     return(View());
 }
Beispiel #6
0
 /// <summary>
 /// 我支持的合同
 /// </summary>
 /// <param name="grid"></param>
 /// <param name="data"></param>
 /// <returns></returns>
 public ActionResult ISupportedContract(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     grid.QueryField.Remove("ExportTypeData");//查询的时候不要这个键值对
     if (IsPost)
     {
         return(Json(AjaxResult.Success(BusinessDataService.ContractManagementService.ISupportedContract(grid))));
     }
     return(View());
 }
Beispiel #7
0
 public ActionResult UserRoleEdit(JqGrid grid, FormCollection data, string id)
 {
     grid.ConvertParams(data);
     ViewBag.UserId            = id;
     ViewBag.SelectUserRoleIds = SystemService.UserService.GetUserRolesByUser("MDM", id);
     if (IsPost)
     {
         return(Json(AjaxResult.Success(SystemService.FunctionRoleService.ForGrid("MDM", grid))));
     }
     return(View());
 }
Beispiel #8
0
 /// <summary>
 /// 全部合同(FFH)
 /// </summary>
 /// <param name="grid"></param>
 /// <param name="data"></param>
 /// <returns></returns>
 public ActionResult AllContractFFH(JqGrid grid, FormCollection data)
 {
     grid.ConvertParams(data);
     grid.QueryField.Remove("ExportTypeData");//查询的时候不要这个键值对
     if (IsPost)
     {
         return(Json(AjaxResult.Success(BusinessDataService.ContractManagementService.AllContractFFH(grid))));
     }
     ViewBag.IsAdmin = WebCaching.IsAdmin;//超级管理员的地方需要具体问下的
     return(View());
 }
Beispiel #9
0
 public ActionResult DeptUserEdit(JqGrid grid, FormCollection data, string id)
 {
     grid.ConvertParams(data);
     grid.QueryField.Remove("id");
     ViewBag.DeptId        = id;
     ViewBag.SelectUserIds = SystemService.DepartmentService.GetDeptUsersByDeptId(id);
     if (IsPost)
     {
         return(Json(AjaxResult.Success(SystemService.UserService.ForGrid(grid))));
     }
     return(View());
 }
Beispiel #10
0
 public ActionResult POEdit(JqGrid grid, FormCollection data, string id)
 {
     ViewBag.ContractId = id;
     grid.ConvertParams(data);
     if (IsPost)
     {
         grid.keyWord = id;
         grid.QueryField.Remove("id");
         return(Json(AjaxResult.Success(BusinessDataService.POService.ForPOGrid(grid)), JsonRequestBehavior.AllowGet));
     }
     return(View());
 }
        public ActionResult ManagerViewList(JqGrid grid, FormCollection data, string id)
        {
            CasUserEntity user = SystemService.UserService.GetUserEntity(id);

            ViewBag.UserId   = id;
            ViewBag.UserCode = user.UserAccount;
            ViewBag.UserName = user.EnglishName;
            grid.ConvertParams(data);
            if (IsPost)
            {
                return(Json(AjaxResult.Success(SystemService.UserService.GetAllLineManagers(id, grid))));
            }
            return(View());
        }
Beispiel #12
0
        /// <summary>
        /// 查看合同模板下载文件
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult CheckDownloadFiles(JqGrid grid, FormCollection data, string id)
        {
            var entity = BusinessDataService.ContractTemplateService.GetById <CasContractTemplateEntity>(id);

            ViewBag.tempalteid   = id;
            ViewBag.company      = entity.Company;
            ViewBag.contractName = entity.ContractTemplateName;
            grid.ConvertParams(data);
            if (IsPost)
            {
                return(Json(AjaxResult.Success(BusinessDataService.ContractTemplateService.GetContractAttachmentList(grid))));
            }
            return(View());
        }
Beispiel #13
0
        public ActionResult ContractAttachmentFiles(JqGrid grid, FormCollection data, string id)
        {
            var entity = BusinessDataService.ContractManagementService.GetById <CasContractEntity>(id);

            ViewBag.tempalteid   = id;
            ViewBag.contractName = !string.IsNullOrWhiteSpace(entity.ContractName)? entity.ContractName: entity.TemplateName;
            if (IsPost)
            {
                //grid.keyWord = id;
                grid.ConvertParams(data);
                return(Json(AjaxResult.Success(BusinessDataService.ContractManagementService.GetContractAttachment(grid))));
            }
            return(View());
        }
        public ActionResult QueryApprovalUser(JqGrid grid, FormCollection data, string id, string appSetid)
        {
            var entity = BusinessDataService.ContractApprovalSetService.GetById <CasContractApprovalStepEntity>(appSetid);

            ViewData["CONTRACT_APPROVAL_STEP_ID"] = entity.ContractApprovalStepId;
            ViewData["COMPANY"]            = entity.Company;
            ViewData["CONTRACT_TYPE_NAME"] = entity.ContractTypeId;
            grid.ConvertParams(data);
            if (IsPost)
            {
                grid.keyWord = appSetid;
                return(Json(AjaxResult.Success(BusinessDataService.ContractApprovalSetService.QueryApprovalUser(grid))));
            }
            return(View());
        }
Beispiel #15
0
 /// <summary>
 /// 合同查看页得到审批列表
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult GetContractApprovalForm(JqGrid grid, FormCollection data, string id, string conid)
 {
     //var entity = BusinessDataService.ContractManagementService.GetById<CasContractEntity>(id);
     //ViewData["CONTRACT_ID"] = entity.ContractId;
     //ViewData["FERRERO_ENTITY"] = entity.FerreroEntity;
     //ViewData["CONTRACT_GROUP"] = entity.ContractGroup;
     //ViewData["CONTRACT_NAME"] = entity.ContractName;
     //ViewData["CONTRACT_INITIATOR"] = entity.ContractInitiator;
     //ViewData["CONTRACT_OWNER"] = !string.IsNullOrWhiteSpace(entity.ContractOwner.ToString()) ? entity.ContractOwner : entity.TemplateOwner;
     //ViewData["COUNTERPARTY_CN"] = entity.CounterpartyCn;
     //ViewData["CONTRACT_PRICE"] = entity.ContractPrice;
     //ViewData["EFFECTIVE_DATE"] = entity.EffectiveDate;
     //ViewData["EXPIRATION_DATE"] = entity.ExpirationDate;
     //ViewData["IsTemplateContract"] = entity.IsTemplateContract;
     //ViewData["Status"] = entity.Status;
     grid.ConvertParams(data);
     if (IsPost)
     {
         grid.keyWord = conid;
         return(Json(AjaxResult.Success(BusinessDataService.ContractManagementService.GetContractApprolvalRes(grid))));
     }
     return(View());
 }
Beispiel #16
0
        public ActionResult Index(JqGrid grid, FormCollection data)
        {
            //if (CurrentUser == null || CurrentUser.CasUserEntity == null || string.IsNullOrEmpty(CurrentUser.CasUserEntity.UserId))
            //{
            //    return RedirectToAction("Login", "Account");
            //}
            string strError = "";

            //string strResult = ComixSDK.EDI.Utils.CacheHelper.Instance.Get<string>("QQ_Notice_New");
            //if (string.IsNullOrWhiteSpace(strResult))
            //{

            //    QQExMailAPIHelper.SendRequstPost("http://news.gtimg.cn/notice_more.php?q=sz002301", new SortedDictionary<string, string>(), "utf-8", ref strResult);
            //    if (!string.IsNullOrWhiteSpace(strResult))
            //    {
            //        strResult = ComixSDK.EDI.Utils.JSONHelper.ToJson(ComixSDK.EDI.Utils.JSONHelper.FromJson<Dictionary<string, object>>(strResult.Replace("var finance_notice =", "").Replace("]};", "]}")));
            //        ComixSDK.EDI.Utils.CacheHelper.Instance.Set("QQ_Notice_New", strResult);
            //    }

            //}
            #region 页面首页带出详细数据
            List <LubrFinancialGoodsEntity> goodsList = BusinessDataService.LubrProductsShowBLLService.GetAllProducts();
            ViewBag.goods = goodsList;
            #endregion
            ViewBag.IsHome = true;
            //ViewBag.QQ_Notice_New = strResult;

            grid.ConvertParams(data);
            grid.QueryField.Remove("ExportTypeData");//查询的时候不要这个键值对
            if (IsPost)
            {
                grid.QueryField.Add("HomeQuery", "True");
                return(Json(eContract.Common.AjaxResult.Success(BusinessDataService.ContractManagementService.ForGrid(grid))));
            }

            return(View(this.CurrentUser));
        }