Beispiel #1
0
        public string SaveAndAccept()
        {
            try
            {
                //仅处理最后结果
                string Tmp_SingleProjectID = Common.ConvertEx.ToString(Session["Tmp_SingleProjectID"]);
                string Tmp_WorkFlowID      = Common.ConvertEx.ToString(Session["Tmp_WorkFlowID"]);

                //WorkFlowManage workflowmanage = new WorkFlowManage();
                //if (workflowmanage.GoNextProjectWorkFlowSataus(SingleProjectID, WorkFlowID))
                //{
                //    Response.Redirect("~/MyTaskList.aspx");
                //}

                //存下华表路径
                //List<T_WorkFlowDefine_MDL> ltDefineMdl = new T_WorkFlowDefine_BLL().GetModelList("SingleProjectID=" + Tmp_SingleProjectID + " AND WorkFlowID=" + Tmp_WorkFlowID + "");
                //if (ltDefineMdl.Count > 0)
                //{
                //    T_WorkFlowDefine_MDL Mdl = ltDefineMdl[0];
                //    Mdl.RecvCellPath = "SubmitToReadyCheck.aspx?CellName=" + NewGUID;
                //    //Mdl.RecvDateTime = DateTime.Now;
                //    //Mdl.RecvUserID = Common.ConvertEx.ToInt(Session["UserID"]);
                //    new T_WorkFlowDefine_BLL().Update(Mdl);
                //}


                BLL.T_WorkFlowDefine_BLL wkdBLL = new T_WorkFlowDefine_BLL();
                DataSet ds = wkdBLL.GetList("SingleProjectID=" + Tmp_SingleProjectID + " AND WorkFlowID=" + Tmp_WorkFlowID);
                if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    Model.T_WorkFlowDefine_MDL wkdMDL = wkdBLL.GetModel(Common.ConvertEx.ToInt(ds.Tables[0].Rows[0]["WorkFlowDefineID"].ToString()));

                    wkdMDL.SubmitStatus = 2;//受理完成状态
                    wkdMDL.RecvUserID   = Common.ConvertEx.ToInt(Session["UserID"]);
                    wkdMDL.RecvDateTime = DateTime.Now;

                    wkdMDL.RecvCellPath = "SubmitToReadyCheck.aspx?CellName=" + Session["CellTempGUID"].ToString();

                    wkdBLL.Update(wkdMDL);

                    return(" SingleProjectID=" + Tmp_SingleProjectID + "&WorkFlowID=" + Tmp_WorkFlowID);
                }
                return("success");
            }
            catch
            {
                return("fail");
            }
        }
Beispiel #2
0
 public bool CheckRecvStatus(string singleProjectID, string workFlowID)
 {
     if (!Common.Session.GetSessionBool("IsCompany"))
     {
         T_WorkFlowDefine_BLL wfDefine = new T_WorkFlowDefine_BLL();
         DataSet ds = wfDefine.GetList("SingleProjectID=" + singleProjectID + " AND WorkFlowID=" + workFlowID + " AND SubmitStatus<>2");
         if (ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) //未受理
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
     return(true);
 }