Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Ajax.Utility.RegisterTypeForAjax(typeof(MyTaskList));
     if (!IsPostBack)
     {
         workFlowID = PublicModel.getWorkFlowIdByWorkFlowCode(SystemSet.EumWorkFlowCode.FILEREG.ToString());
         BindGrid(1);
     }
 }
Beispiel #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.Utility.RegisterTypeForAjax(typeof(LHSignatureProjectList));
            workFlowID = PublicModel.getWorkFlowIdByWorkFlowCode(SystemSet.EumWorkFlowCode.FILEREG.ToString());
            if (!IsPostBack)
            {
                if (!String.IsNullOrWhiteSpace(DNTRequest.GetQueryString("txtGcmc")))
                {
                    txtGcmc.Text = Server.UrlDecode(DNTRequest.GetQueryString("txtGcmc"));
                }
                if (!String.IsNullOrWhiteSpace(DNTRequest.GetQueryString("txtGcbm")))
                {
                    txtGcbm.Text = Server.UrlDecode(DNTRequest.GetQueryString("txtGcbm"));
                }

                BindGrid(1);
            }
        }
Beispiel #3
0
        public string SubMitProject(string singleProjectID, string workFlowID, string workFlowDefineID)
        {
            Model.T_SingleProject_MDL spMDL = (new BLL.T_SingleProject_BLL()).GetModel(ConvertEx.ToInt(singleProjectID));
            BLL.T_FileList_BLL        flBLL = new T_FileList_BLL();
            DataSet ds2 = flBLL.GetList("SingleProjectID=" + singleProjectID);

            if (!String.IsNullOrEmpty(spMDL.gcbm) && ds2.Tables.Count > 0 && ds2.Tables[0].Rows.Count > 0)
            {
                //窗口接收提交的时候,更新该工程所有案卷下的文件序号,根据文件编号排序更新
                if (ConvertEx.ToInt(workFlowID) == PublicModel.getWorkFlowIdByWorkFlowCode(SystemSet.EumWorkFlowCode.WINRECV.ToString()))
                {
                    new T_Archive_BLL().updateFileOrderIndexBySingleProjectID(singleProjectID);
                }

                BLL.T_WorkFlowDefine_BLL   wkBLL = new T_WorkFlowDefine_BLL();
                Model.T_WorkFlowDefine_MDL wkMDL = wkBLL.GetModel(ConvertEx.ToInt(workFlowDefineID));

                if (String.IsNullOrEmpty(wkMDL.SubmitCellPath))  //有些地方不需要填申请单的
                {
                    WorkFlowManage workflowmanage = new WorkFlowManage();
                    if (workflowmanage.GoNextProjectWorkFlowSataus(ConvertEx.ToInt(singleProjectID), ConvertEx.ToInt(workFlowID)))
                    {
                        return(SystemSet._RETURN_SUCCESS_VALUE);
                    }
                    else
                    {
                        return(SystemSet._RETURN_FAILURE_VALUE);
                    }
                }
                else      //填申请单的未做
                {
                    return(SystemSet._RETURN_SUCCESS_VALUE);
                }
            }
            else
            {
                return("请选分配任务!");
            }
        }
Beispiel #4
0
        public string InsertFileData(string strXml)
        {
            string rtMsg = string.Empty;

            if (!myHeader.ValideUser(myHeader.UserName, myHeader.PassWord))
            {
                rtMsg = "无权访问WebService,凭证错误!";
                return(rtMsg);
            }
            try {
                XmlDocument doc = new XmlDocument();
                doc.LoadXml(strXml);
                XmlNode xmlNode = doc.SelectSingleNode("FILELIST");

                T_SingleProject_MDL singleProjectMDL = new T_SingleProject_BLL().GetModel(
                    ConvertEx.ToInt(xmlNode["SINGLEPROJECTID"].InnerText));
                if (singleProjectMDL != null && singleProjectMDL.WorkFlow_DoStatus != PublicModel.getWorkFlowIdByWorkFlowCode(SystemSet.EumWorkFlowCode.FILEREG.ToString()))
                {
                    rtMsg = "failure:在线工程必须处在[文件登记]环节才可以导入筑业信息包";
                    return(rtMsg);
                }

                DataTable dt = fileBLL.GetList("FROM_SID='" + xmlNode["SID"].InnerText + "'").Tables[0];
                if (dt != null && dt.Rows.Count > 0)
                {
                    fileBLL.Delete(ConvertEx.ToInt(dt.Rows[0]["FileListID"]));
                    string oldPdfPath = String.Concat(ConvertEx.ToString(dt.Rows[0]["RootPath"]), "\\", xmlNode["SINGLEPROJECTID"].InnerText,
                                                      "\\", "MPDF", "\\", ConvertEx.ToString(dt.Rows[0]["PDFFilePath"]));
                    if (System.IO.File.Exists(oldPdfPath))
                    {
                        System.IO.File.Delete(oldPdfPath);
                    }
                }
                rtMsg = InsertFileList(xmlNode);
            } catch (Exception ex) {
                rtMsg = "failure:" + ex.Message;
            }
            return(rtMsg);
        }