示例#1
0
        public ActionResult ApprovalzhunchuSup(string id)
        {
            string[]        arr         = id.Split('@');
            string          webkey      = arr[0]; // Web.config内关联的key
            string          folderBack  = COM_ApprovalMan.getNewwebkey(webkey);
            string          PID         = arr[1];
            string          RelevanceID = arr[2];
            tk_SYRDetail    del         = new tk_SYRDetail();
            tk_SProcessInfo info        = new tk_SProcessInfo();
            tk_SUPSugestion suges       = new tk_SUPSugestion();

            suges = SupplyManage.GetSuge(RelevanceID);
            info  = SupplyManage.getProceinfo(RelevanceID);
            del   = SupplyManage.getDetails(RelevanceID);
            ViewData["Score1"]      = del.Score1;
            ViewData["Score2"]      = del.Score2;
            ViewData["Score3"]      = del.Score3;
            ViewData["Score4"]      = del.Score4;
            ViewData["Score5"]      = del.Score5;
            ViewData["Result"]      = del.Result;
            ViewData["ReviewDate"]  = del.ReviewDate;
            ViewData["ResultDesc"]  = del.ResultDesc;
            ViewData["DeclareUser"] = del.DeclareUser;
            ViewData["DeclareUnit"] = del.DeclareUnit;
            ViewData["OpinionsD"]   = info.OpinionsD;
            ViewData["ISAgree"]     = info.ISAgree;
            ViewData["SState"]      = suges.SState;
            ViewData["SContent"]    = suges.SContent;

            ViewData["webkey"]      = webkey;
            ViewData["folderBack"]  = folderBack;
            ViewData["PID"]         = PID;
            ViewData["RelevanceID"] = RelevanceID;
            return(View());
        }
示例#2
0
        public ActionResult SignJudge()
        {
            Acc_Account account = GAccount.GetAccountInfo();
            string      unitid  = account.UnitID;

            #region MyRegion
            //string where = " and a.state != '-1' and a.UnitID = '" + unitid + "'";
            //string ck1 = EquipMan.getNewCK1time();
            //if (ck1 != "")
            //    where += " and (DATEDIFF(MONTH,GETDATE(),a.PlanDate)) <= '" + ck1 + "'";
            //else
            //    where += " and (DATEDIFF(MONTH,GETDATE(),a.PlanDate)) <= '2'";

            //string where1 = "";
            //string time = ContractMan.getNewReturnTime();
            //if (time == "")
            //    where1 = " and a.Unit = '" + unitid + "' and a.state != '2' and DATEDIFF(MONTH,GETDATE(),a.CPlanEndTime) <= '2'";
            //else
            //    where1 = " and a.Unit = '" + unitid + "' and a.state != '2' and DATEDIFF(MONTH,GETDATE(),a.CPlanEndTime) <= '" + time + "'";

            #endregion
            //资质到期
            string where2 = " and b.state!='-1' and b.DeclareUnitID = '" + unitid + "' ";
            //string num = UserAptitudeMan.getNewAptitudeTime();//1,1,2
            string num = SupplyManage.getZZTimeOut();
            if (num == "")
            {
                where2 += " and DATEDIFF(MONTH,GETDATE(),a.FTimeOut) <= '2'";
            }
            else
            {
                where2 += "  and DATEDIFF(MONTH,GETDATE(),a.FTimeOut) <= '" + num + "'";
            }
            //证书到期
            string where4 = " and b.state!='-1' and b.DeclareUnitID = '" + unitid + "'";
            string ck     = SupplyManage.getZSTimeOut();
            if (ck == "")
            {
                where4 += " and DATEDIFF(MONTH,GETDATE(),a.TimeOut) <= '2'";
            }
            else
            {
                where4 += "  and DATEDIFF(MONTH,GETDATE(),a.TimeOut) <= '" + num + "'";
            }
            #region 过期代码
            //string where3 = "";
            //if (unitid == "27")
            //    where3 += " and Recipient ='" + account.UserName + "'";
            //else
            //    where3 += " and 1<>1";
            #endregion

            string warn = MainMan.getNewJudgeWarnString(where2, where4);
            if (warn != "")
            {
                return(Json(new { success = "true", Msg = warn }));
            }
            else
            {
                return(Json(new { success = "false" }));
            }
        }