Beispiel #1
0
        public void DeleteFile(string archiveListCellRptID, string singleProjectID)
        {
            T_EFile_MDL model = new T_EFile_MDL();

            model = eFileBLL.GetModel(Convert.ToInt32(archiveListCellRptID));
            if (model != null)
            {
                string filePath = string.Concat(model.RootPath, singleProjectID, "\\ODOC\\", model.FilePath);

                if (filePath != "" && System.IO.File.Exists(filePath))
                {
                    System.IO.File.Delete(filePath);
                }
                //删除电子文件记录
                eFileBLL.Delete(Convert.ToInt32(archiveListCellRptID));
                PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_EFile;key=", model.ArchiveListCellRptID,
                                                                                            ";SingleProjectID=", SingleProjectID, ";FileListID=", model.FileListID, ";Title=", model.Title));

                //Leo 更新文件夹,晚上重新生产一次
                T_FileList_MDL fileListMDL = fileListBLL.GetModel(model.FileListID);
                if (fileListMDL != null)
                {
                    fileListMDL.CONVERT_FLAG = false;
                    fileListMDL.Version      = PublicModel.getFileVersion(fileListMDL.SingleProjectID.ToString());
                    fileListBLL.Update(fileListMDL);
                }
            }
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            BLL.T_Module_BLL   bll      = new DigiPower.Onlinecol.Standard.BLL.T_Module_BLL();
            Model.T_Module_MDL Newmodel = bll.GetModel(Common.ConvertEx.ToInt(ID));
            if (Newmodel == null)
            {
                Newmodel = new DigiPower.Onlinecol.Standard.Model.T_Module_MDL();
            }
            Newmodel             = (Model.T_Module_MDL)Comm.GetValueToObject(Newmodel, this.tbl);
            Newmodel.RightListID = chkMenuRight.getSelectValue;
            if (Newmodel != null)
            {
                switch ((CommonEnum.PageState)ViewState["ps"])
                {
                case CommonEnum.PageState.ADD:
                    int moduleID = bll.Add(Newmodel);
                    PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(), string.Concat("T_Module;key=", moduleID,
                                                                                                ";ModuleName=", Newmodel.ModuleName, ";BH=", Newmodel.BH));
                    break;

                case CommonEnum.PageState.EDIT:
                    bll.Update(Newmodel);
                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_Module;key=", Newmodel.ModuleID,
                                                                                                ";ModuleName=", Newmodel.ModuleName, ";BH=", Newmodel.BH));
                    break;
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (ViewState["userMDL"] != null)
            {
                T_UsersInfo_MDL userMDL = ViewState["userMDL"] as T_UsersInfo_MDL;

                userMDL.UserName = UserName.Text;
                userMDL.Mobile   = Mobile.Text;
                userMDL.Fax      = Fax.Text;
                userMDL.Tel      = Tel.Text;
                userMDL.Passwd   = DESEncrypt.Encrypt(newPasswd2.Text);
                userinfoBLL.Update(userMDL);

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat(" T_UsersInfo;key=", userMDL.UserID,
                                                                                            ";UserName="******";LoginName=", userMDL.LoginName, ";ChangePassword.aspx密码重置"));


                if (ViewState["companyMDL"] != null)
                {
                    T_Company_MDL companyMDL = ViewState["companyMDL"] as T_Company_MDL;
                    companyMDL.CompanyName = CompanyName.Text.Trim();
                    companyBLL.Update(companyMDL);

                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat(" T_Company_MDL;key=", companyMDL.CompanyID,
                                                                                                ";CompanyName=", companyMDL.CompanyName, ";ChangePassword.aspx管理员更新档案馆名称"));
                }
                Common.MessageBox.FnLayerAlert(this.Page, "保存成功,新密码重新登录才有效!");
            }
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            T_WorkFlow_MDL model = new T_WorkFlow_MDL();

            if (ViewState["model"] != null)
            {
                model = (T_WorkFlow_MDL)ViewState["model"];
            }

            object obj = Comm.GetValueToObject(model, this.tbl);

            if (obj != null)
            {
                T_WorkFlow_MDL Newmodel = (T_WorkFlow_MDL)obj;
                Newmodel.RightListID = chkMenuRight.getSelectValue;
                switch ((CommonEnum.PageState)ViewState["ps"])
                {
                case CommonEnum.PageState.ADD:
                    int workFlowID = workFlowBLL.Add(Newmodel);

                    PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(), string.Concat("T_WorkFlow;key=", workFlowID,
                                                                                                ";CompanyID=", Newmodel.CompanyID, ";WorkFlowCode=", Newmodel.WorkFlowCode, ";WorkFlowName=", Newmodel.WorkFlowName));
                    break;

                case CommonEnum.PageState.EDIT:
                    T_WorkFlow_MDL tempObj = workFlowBLL.GetModel(Newmodel.WorkFlowID);
                    workFlowBLL.Update(Newmodel);

                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_WorkFlow;key=", Newmodel.WorkFlowID,
                                                                                                ";CompanyID=", Newmodel.CompanyID, ";WorkFlowCode=", Newmodel.WorkFlowCode, ";WorkFlowName=", Newmodel.WorkFlowName));
                    break;
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
Beispiel #5
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            T_Construction_Project_BLL projectbll = new T_Construction_Project_BLL();
            T_Construction_Project_MDL obj        = new T_Construction_Project_MDL();

            obj = ctrlConstructionBaseInfo1.GetModule(Common.ConvertEx.ToInt(Common.DNTRequest.GetQueryString("ID")));
            //object obj = Comm.GetValueToObject(tmdl1, table1);
            int SingleProjectID = 0;

            if (obj != null)
            {
                T_Construction_Project_MDL newprojectmdl = (T_Construction_Project_MDL)obj;
                newprojectmdl.jgrq = DateTime.Now;
                if (((CommonEnum.PageState)ViewState["ps"]) == CommonEnum.PageState.ADD)
                {
                    newprojectmdl.CompanyID = Common.ConvertEx.ToInt(Common.Session.GetSession("CompanyID"));

                    //Leo 新增时,需要自动产生项目号
                    T_Other_BLL otherBLL = new T_Other_BLL();
                    newprojectmdl.xmh = otherBLL.GetNewProjectID();

                    SingleProjectID = projectbll.Add(newprojectmdl);
                    PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(),
                                         string.Concat("T_Construction_Project;key=", SingleProjectID, ";xmmc=", newprojectmdl.xmmc));
                }
                else
                {
                    projectbll.Update(newprojectmdl);
                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(),
                                         string.Concat("T_Construction_Project;key=", newprojectmdl.ConstructionProjectID, ";xmmc=", newprojectmdl.xmmc));
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
Beispiel #6
0
        public string DeleteCompany(string CompanyID)
        {
            string flag = SystemSet._RETURN_SUCCESS_VALUE;

            try {
                T_Company_MDL companyMDL = compBLL.GetModel(ConvertEx.ToInt(CompanyID));
                if (companyMDL != null)
                {
                    T_SystemInfo_BLL systemInfoBLL = new T_SystemInfo_BLL();
                    if (companyMDL != null && companymdl.CompanyType != SystemSet._JSCOMPANYINFO)  //只删除监理和施工
                    {
                        compBLL.DeleteCompanyOther(CompanyID);

                        PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_Company;key=", companyMDL.CompanyID,
                                                                                                    ";CompanyCode=", companyMDL.CompanyCode, ";CompanyType=", companyMDL.CompanyType,
                                                                                                    ";CompanyName=", companyMDL.CompanyName, ";删除公司及其关联表信息"));
                    }
                    else
                    {
                        flag = SystemSet._RETURN_FAILURE_VALUE + ":建设单位不能被删除!";
                    }
                }
            } catch (Exception ex) {
                flag = SystemSet._RETURN_FAILURE_VALUE + ex.Message;
                Common.LogUtil.Debug(this, "删除公司", ex);
            }
            return(flag);
        }
Beispiel #7
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            Model.T_UsersInfo_MDL model = new DigiPower.Onlinecol.Standard.Model.T_UsersInfo_MDL();
            if (ViewState["model"] != null)
            {
                model = (Model.T_UsersInfo_MDL)ViewState["model"];
            }

            object obj = Comm.GetValueToObject(model, this.tbl);

            if (obj != null)
            {
                Model.T_UsersInfo_MDL Newmodel = (Model.T_UsersInfo_MDL)obj;
                Newmodel.Passwd     = DESEncrypt.Encrypt(Passwd.Text);                             //密码加密
                Newmodel.Createdate = System.DateTime.Now;                                         //创建时间或最后修改时间
                Newmodel.Createdby  = Common.Session.GetSession("UserName");                       //创建者或最后修改者
                Newmodel.UserType   = SystemSet.EumUserType.CompanyUser.ToString();                //默认为公司用户

                switch ((CommonEnum.PageState)ViewState["ps"])
                {
                case CommonEnum.PageState.EDIT:
                    Model.T_UsersInfo_MDL tempObj = userBLL.GetModel(Newmodel.UserID);
                    userBLL.Update(Newmodel);

                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_UsersInfo;key=", tempObj.UserID,
                                                                                                ";UserType=", tempObj.UserType, ";CompanyID=", tempObj.CompanyID, ";UserName="******";LoginName=", tempObj.LoginName, ";UserType=", tempObj.UserType));

                    break;
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
Beispiel #8
0
        /// <summary>
        /// 电子文件上传
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnUpLoad_Click(object sender, EventArgs e)
        {
            try {
                if (FileUpload1.HasFile)
                {
                    string odocFilePath = string.Concat(Common.Common.EFileStartPath, SingleProjectID, "\\ODOC\\");

                    if (!System.IO.Directory.Exists(Common.Common.EFileStartPath))
                    {
                        System.IO.Directory.CreateDirectory(Common.Common.EFileStartPath);
                    }

                    if (!System.IO.Directory.Exists(odocFilePath))
                    {
                        System.IO.Directory.CreateDirectory(odocFilePath);
                    }

                    string fileNewName = Guid.NewGuid().ToString() + FileUpload1.FileName.Substring(FileUpload1.FileName.LastIndexOf('.'));;

                    //电子文件存放全路径
                    string FileFullPath = odocFilePath + fileNewName;
                    FileUpload1.SaveAs(FileFullPath);  //保存原始文件

                    T_EFile_MDL model = new T_EFile_MDL();

                    model.PageCounts = 0;
                    model.FileListID = Common.ConvertEx.ToInt(FileListID);
                    model.FileType   = 1;
                    model.OrderIndex = GetEfileMaxOrderIndex(FileListID);
                    model.Title      = FileUpload1.FileName.Substring(0, FileUpload1.FileName.LastIndexOf('.'));
                    model.RootPath   = Common.Common.EFileStartPath;
                    model.FilePath   = fileNewName;

                    model.FileType     = 0;
                    model.Status_Text  = "上传成功,当晚批量计算页数!";
                    model.CREATE_DT    = System.DateTime.Now.ToShortDateString();
                    model.CONVERT_FLAG = false;
                    int ArchiveListCellRptID = efileBLL.Add(model);

                    //更新文件级转换标志,等批量转换晚上转
                    T_FileList_MDL fileListMDL = filelistBLL.GetModel(model.FileListID);
                    fileListMDL.CONVERT_FLAG = false;
                    fileListMDL.RootPath     = Common.Common.EFileStartPath;
                    filelistBLL.Update(fileListMDL);
                    BindGridView(AspNetPager.CurrentPageIndex);

                    PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(), string.Concat("T_EFile;key=", ArchiveListCellRptID,
                                                                                                ";SingleProjectID=", fileListMDL.SingleProjectID, ";FileListID=", model.FileListID, ";Title=", model.Title, "'案卷补录"));
                }
            } catch (Exception ex) {
                Common.LogUtil.Debug(this, "补卷-电子文件上传错误", ex);
            }
        }
 public bool DelRoleRight(string RoleID, string RoleRightType)
 {
     try {
         new T_Other_BLL().DelRoleRight(RoleID, RoleRightType);
         PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_RoleRight;RoleRightType=", RoleRightType,
                                                                                     ";RoleID=", RoleID, ";更改权限"));
         return(true);
     } catch (Exception ex) {
         Common.LogUtil.Debug(this, "删除权限失败", ex);
         return(false);
     }
 }
        /// <summary>
        /// 证书附件上传
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            int singleProjectID = DNTRequest.GetQueryInt("SingleProjectID", 0);

            if (singleProjectID > 0)
            {
                HttpFileCollection uploadFiles  = HttpContext.Current.Request.Files;//获取所有客户端上传文件对象
                HttpPostedFile     userPostFile = null;

                if (uploadFiles.Count > 0)
                {
                    for (int i = 0; i < uploadFiles.Count; i++)
                    {
                        userPostFile = uploadFiles[i];//获取独立的文件对象
                        string fileName = Common.Common.SaveFile(Server.MapPath(savePath), userPostFile, "R");

                        if (fileName != "")
                        {
                            T_FileAttach_MDL mdl = new T_FileAttach_MDL();
                            mdl.AttachName  = fileName;
                            mdl.AttachPath  = savePath + fileName;
                            mdl.CreateDate  = DateTime.Now;
                            mdl.PriKeyValue = singleProjectID;
                            mdl.OrderIndex  = 0;
                            mdl.Flag        = "Company_Registration";

                            if (Hid_ghxkz.Value != "")
                            {
                                Hid_ghxkz.Value = "";
                                mdl.AttachCode  = SystemSet.EumProject_Credentials.ghxkz.ToString();
                                fileAttachBLL.DelFileAttach(singleProjectID.ToString(), mdl.AttachCode, mdl.Flag);
                            }
                            else if (Hid_sgxkz.Value != "")
                            {
                                Hid_sgxkz.Value = "";
                                mdl.AttachCode  = SystemSet.EumProject_Credentials.sgxkz.ToString();
                                fileAttachBLL.DelFileAttach(singleProjectID.ToString(), mdl.AttachCode, mdl.Flag);
                            }
                            else if (Hid_other.Value != "")
                            {
                                mdl.AttachCode = SystemSet.EumProject_Credentials.other.ToString();
                            }

                            int attachID = fileAttachBLL.Add(mdl);
                            PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(), string.Concat("T_FileAttach;key=", attachID,
                                                                                                        ";SingleProjectID=", singleProjectID, ";AttachCode=", mdl.AttachCode, ";上传工程证书附件"));
                        }
                    }
                }
                Common.MessageBox.CloseLayerOpenWeb(this.Page);
            }
        }
Beispiel #11
0
        public void UpdateFileOrderIndex(string fileListID, string OrderIndex)
        {
            T_FileList_MDL flMDL = fileListBLL.GetModel(ConvertEx.ToInt(fileListID));

            if (flMDL != null)
            {
                flMDL.OrderIndex = ConvertEx.ToInt(OrderIndex);
                fileListBLL.Update(flMDL);

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_FileList;key=", fileListID,
                                                                                            ";SingleProjectID=", flMDL.SingleProjectID, ";ArchiveID=", flMDL.ArchiveID, ";BH=", flMDL.BH, ";Title=", flMDL.Title, ";案卷管理-更新文件序号"));
            }
        }
        public void UpdateArchiveXH(string archiveID, string XH)
        {
            T_Archive_MDL arMDL = archiveBLL.GetModel(ConvertEx.ToInt(archiveID));

            if (arMDL != null)
            {
                arMDL.xh = ConvertEx.ToInt(XH);
                archiveBLL.Update(arMDL);

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_Archive;key=", arMDL.ArchiveID,
                                                                                            ";SingleProjectID=", arMDL.SingleProjectID, ";ajtm=", arMDL.ajtm, ";xh=", arMDL.xh, ";案卷管理-更新案卷序号"));
            }
        }
Beispiel #13
0
        public void DeleteFile(string fileListID)
        {
            T_FileList_MDL flMDL = fileListBLL.GetModel(ConvertEx.ToInt(fileListID));

            if (flMDL != null)
            {
                int tempArchiveID = ConvertEx.ToInt(flMDL.ArchiveID);
                flMDL.ArchiveID = 0;
                fileListBLL.Update(flMDL);

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_FileList;key=", fileListID,
                                                                                            ";SingleProjectID=", flMDL.SingleProjectID, ";ArchiveID=", tempArchiveID, ";BH=", flMDL.BH, ";Title=", flMDL.Title, ";案卷管理-拆文件"));
            }
        }
Beispiel #14
0
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            DigiPower.Onlinecol.Standard.Model.T_FileList_MDL model = null;
            if (pageIndex != 1)
            {
                model = fileBLL.GetModel(Common.ConvertEx.ToInt(fileListID));
            }
            else
            {
                model = fileBLL.GetModel(Common.ConvertEx.ToInt(ID));
            }

            model = (Model.T_FileList_MDL)Comm.GetValueToObject(model, tbl);
            if (model != null && !model.IsFolder)
            {
                if (ConvertEx.ToInt(model.ManualCount) > 0)
                {
                    if (model.wjgbdm == "ct" ||
                        model.wjgbdm == "yt" ||
                        model.wjgbdm == "dt" ||
                        model.wjgbdm == "lt")
                    {
                        model.tzz = ConvertEx.ToInt(model.ManualCount);
                    }
                    else
                    {
                        model.sl = ConvertEx.ToInt(model.ManualCount);
                    }
                }
                model.qssj       = DateTime.Now;
                model.zzsj       = DateTime.Now;
                model.lrsj       = DateTime.Now;
                model.shsj_1     = DateTime.Now;
                model.shsj_2     = DateTime.Now;
                model.shsj_3     = DateTime.Now;
                model.aipdate    = DateTime.Now;
                model.pssj       = DateTime.Now;
                model.CreateDate = DateTime.Now;
                model.Version    = PublicModel.getFileVersion(model.SingleProjectID.ToString()); //获取文件的版本号
                fileBLL.Update(model);

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_FileList;key=", model.FileListID,
                                                                                            ";SingleProjectID=", model.SingleProjectID, ";bh=", model.BH, ";Title=", model.Title));

                T_Other_BLL otherBLL = new T_Other_BLL();
                otherBLL.UpdateArchiveStatus(model.FileListID.ToString(), 10, "0");
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
Beispiel #15
0
        public bool DeleteFileList(string FileListID)
        {
            bool           flag = false;
            T_FileList_BLL Bll  = new T_FileList_BLL();
            T_FileList_MDL Mdl  = Bll.GetModel(ConvertEx.ToInt(FileListID));

            if (Mdl != null && !Mdl.IsSystem)
            {
                Bll.Delete(ConvertEx.ToInt(FileListID));
                PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_FileList;key=", FileListID,
                                                                                            ";SingleProjectID=", Mdl.SingleProjectID, ";bh=", Mdl.BH, ";Title=", Mdl.Title));
                flag = true;
            }
            return(flag);
        }
        public bool DeleteFileList(string FileListID)
        {
            bool           flag = false;
            T_FileList_MDL Mdl  = fileListBLL.GetModel(ConvertEx.ToInt(FileListID));

            if (Mdl != null && !Mdl.IsFolder)
            {
                fileListBLL.Delete(ConvertEx.ToInt(FileListID));

                PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_FileList;key=", FileListID,
                                                                                            ";SingleProjectID=", Mdl.SingleProjectID, ";FileListID=", FileListID, ";Title=", Mdl.Title, ";工程外观图删除"));
                flag = true;
            }
            return(flag);
        }
        public bool UpdateSingleProjectStatus(string SingleProjectID)
        {
            bool flag = false;
            T_SingleProject_MDL singleMDL = singleProjectBLL.GetModel(ConvertEx.ToInt(SingleProjectID));

            if (singleMDL != null && singleMDL.Status == 3722 && singleMDL.WorkFlow_DoStatus == PublicModel.getWorkFlowIdByWorkFlowCode(SystemSet.EumWorkFlowCode.IMPORT_TO.ToString()))    //工程已入库,工程流程处于 移交入库
            {
                singleMDL.Status = 3721;
                singleProjectBLL.Update(singleMDL);
                flag = true;

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_SingleProject;key=", SingleProjectID,
                                                                                            ";gcbm=", singleMDL.gcbm, ";gcmc=", singleMDL.gcmc, ";工程重新入库"));
            }
            return(flag);
        }
Beispiel #18
0
        public bool DeleteConstruction(string ConstructionProjectID)
        {
            bool flag = false;
            T_Construction_Project_MDL mdl = bll1.GetModel(ConvertEx.ToInt(ConstructionProjectID));

            if (mdl != null)
            {
                if (!new T_Other_BLL().GetSingleProjectExistByConstructionID(ConstructionProjectID))
                {
                    bll1.Delete(mdl.ConstructionProjectID);
                    flag = true;
                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(),
                                         string.Concat("T_Construction_Project;key=", ConstructionProjectID, ";xmmc=", mdl.xmmc));
                }
            }
            return(flag);
        }
        public bool DeleteRole(string RoleID)
        {
            T_Role_MDL roleMDL = roleBLL.GetModel(ConvertEx.ToInt(RoleID));

            if (roleMDL != null)
            {
                if (!new T_UsersInfo_BLL().Exists("RoleID=" + RoleID))
                {
                    roleBLL.Delete(ConvertEx.ToInt(RoleID));

                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_Role;key=", roleMDL.RoleID,
                                                                                                ";RoleCode=", roleMDL.RoleCode, ";RoleName=", roleMDL.RoleName));

                    return(true);
                }
            }
            return(false);
        }
        public bool DeleteFileListTmp(string recID)
        {
            bool flag = false;

            if (fileListTmpBLL.GetCount("PID=" + recID + "") < 1)
            {
                T_FileListTmp_MDL fileListTmpMDL = fileListTmpBLL.GetModel(ConvertEx.ToInt(recID));
                if (fileListTmpMDL != null)
                {
                    fileListTmpBLL.Delete(ConvertEx.ToInt(recID));
                    signatureTmpBll.DeleteForFileListID(ConvertEx.ToInt(recID));
                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_FileListTmp;key=", fileListTmpMDL.recid,
                                                                                                ";archive_form_no=", fileListTmpMDL.archive_form_no, ";bh=", fileListTmpMDL.bh, ";title=", fileListTmpMDL.title));
                }
                flag = true;
            }
            return(flag);
        }
        public void SetFileListSignatureStatus(string fileListID, string iSignaturePdf, string iSignatureWorkFlow)
        {
            try { //注意:如果文件已开始顺签,后又混签,则没影响; 如果先混签,在设置为顺签,则有影响. 看是否需要过滤下如果文件已开始签章则不能更改 (是否按签章流程签章)标识
                T_FileList_MDL fileListMDL = fileListBLL.GetModel(ConvertEx.ToInt(fileListID));
                if (fileListMDL != null)
                {
                    fileListMDL.iSignaturePdf      = ConvertEx.ToBool(iSignaturePdf);
                    fileListMDL.iSignatureWorkFlow = ConvertEx.ToBool(iSignatureWorkFlow);
                    fileListBLL.Update(fileListMDL);

                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_FileList;key=", fileListMDL.FileListID,
                                                                                                ";SingleProjectID=", fileListMDL.SingleProjectID, ";bh=", fileListMDL.BH, ";iSignaturePdf=", iSignaturePdf,
                                                                                                ";iSignatureWorkFlow=", iSignatureWorkFlow, ";Title=", fileListMDL.Title, ";文件登记页更新是否需要签章,是否按流程签章"));
                }
            } catch (Exception ex) {
                LogUtil.Debug(this, "文件登记归档目录保存操作", ex);
            }
        }
Beispiel #22
0
        public bool DeleteArea(string AreaID)
        {
            bool result = false;

            try {
                T_Area_MDL areaMDL = areaBLL.GetModel(ConvertEx.ToInt(AreaID));
                if (areaMDL != null)
                {
                    areaBLL.Delete(areaMDL.AreaID);

                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_Area;key=", areaMDL.AreaID,
                                                                                                ";area_code=", areaMDL.area_code, ";area_name=", areaMDL.area_name));
                }
                result = true;
            } catch (Exception ex) {
                Common.LogUtil.Debug(this, "删除机构失败", ex);
            }
            return(result);
        }
        public bool DeleteUser(int userID)
        {
            bool flag = false;

            try {
                Model.T_UsersInfo_MDL userMDL = userBLL.GetModel(userID);
                if (userMDL != null && !userMDL.IsSuperAdmin)
                {
                    userBLL.Delete(userID);

                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_UsersInfo;key=", userMDL.UserID,
                                                                                                ";CompanyID=", userMDL.CompanyID, ";UserName="******";LoginName=", userMDL.LoginName, ";删除档案馆用户"));
                    flag = true;
                }
            } catch (Exception ex) {
                Common.LogUtil.Debug(this, "档案馆用户删除失败", ex);
            }
            return(flag);
        }
        public string DeleteFileAttach(int attachID)
        {
            string flag = SystemSet._RETURN_SUCCESS_VALUE;

            try {
                T_FileAttach_MDL fileAttachMDL = fileAttachBLL.GetModel(attachID);
                if (fileAttachMDL != null)
                {
                    PublicModel.writeLog(SystemSet.EumLogType.AddData.ToString(), string.Concat("T_FileAttach;key=", attachID,
                                                                                                ";SingleProjectID=", fileAttachMDL.PriKeyValue, ";AttachCode=", fileAttachMDL.AttachCode, ";删除工程证书附件"));

                    fileAttachBLL.Delete(attachID);
                }
            } catch (Exception ex) {
                flag = SystemSet._RETURN_FAILURE_VALUE + ex.Message;
                Common.LogUtil.Debug(this, "删除工程证书附件", ex);
            }
            return(flag);
        }
        public string DeleteSingleProjectPoint(int pointID)
        {
            string flag = SystemSet._RETURN_SUCCESS_VALUE;

            try {
                T_SingleProject_Point_MDL pointMDL = pointBLL.GetModel(pointID);
                if (pointMDL != null)
                {
                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_SingleProject_Point;key=", pointMDL.PointID,
                                                                                                ";SingleProjectID=", pointMDL.SingleProjectID, ";删除工程坐标"));

                    pointBLL.Delete(pointID);
                }
            } catch (Exception ex) {
                flag = SystemSet._RETURN_FAILURE_VALUE + ex.Message;
                Common.LogUtil.Debug(this, "删除工程坐标", ex);
            }
            return(flag);
        }
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (((CommonEnum.PageState)ViewState["ps"]) == CommonEnum.PageState.EDIT)
            {
                T_Archive_MDL Mdl = new T_Archive_MDL();
                if (ViewState["model"] != null)
                {
                    Mdl = ViewState["model"] as T_Archive_MDL;
                    object        obj    = Comm.GetValueToObject(Mdl, this.tbl);
                    T_Archive_MDL newMdl = obj as T_Archive_MDL;

                    new T_Archive_BLL().Update(newMdl);

                    PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_Archive;key=", newMdl.ArchiveID,
                                                                                                ";SingleProjectID=", newMdl.SingleProjectID, ";ajtm=", newMdl.ajtm, ";xh=", newMdl.xh, ";案卷管理"));
                }
            }
            Common.MessageBox.CloseLayerOpenWeb(this.Page);
        }
        public string DeleteSingleProject(string SingleProjectID)
        {
            string flag = SystemSet._RETURN_SUCCESS_VALUE;

            try {
                T_SingleProject_MDL singleMDL = singleProjectBLL.GetModel(ConvertEx.ToInt(SingleProjectID));
                if (singleMDL != null)
                {
                    new T_Other_BLL().DeleteCompanyOther(SingleProjectID);

                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_SingleProject;key=", SingleProjectID,
                                                                                                ";ProjectType=", singleMDL.ProjectType, ";gcbm=", singleMDL.gcbm, ";gcmc=", singleMDL.gcmc, ";删除工程及其关联表信息"));
                }
            } catch (Exception ex) {
                flag = SystemSet._RETURN_FAILURE_VALUE + ex.Message;
                Common.LogUtil.Debug(this, "删除工程", ex);
            }
            return(flag);
        }
        public bool DelWrokFlow(string WorkFlowID)
        {
            bool flag = false;

            try {
                T_WorkFlow_MDL workFlowMDL = workFlowBLL.GetModel(ConvertEx.ToInt(WorkFlowID));
                if (workFlowMDL != null)
                {
                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_WorkFlow;key=", workFlowMDL.WorkFlowID,
                                                                                                ";CompanyID=", workFlowMDL.CompanyID, ";WorkFlowCode=", workFlowMDL.WorkFlowCode, ";WorkFlowName=", workFlowMDL.WorkFlowName));
                }

                CBLL.WorkFlowManage cbll = new DigiPower.Onlinecol.Standard.CBLL.WorkFlowManage();
                cbll.Delete(Common.ConvertEx.ToInt(WorkFlowID));
                flag = true;
            } catch (Exception ex) {
                Common.LogUtil.Debug(this, "流程删除失败", ex);
            }
            return(flag);
        }
Beispiel #29
0
        public bool DeleteModule(string ModuleID)
        {
            bool result = false;

            try {
                T_Module_MDL moduleMDL = moduleBLL.GetModel(ConvertEx.ToInt(ModuleID));
                if (moduleMDL != null)
                {
                    moduleBLL.Delete(moduleMDL.ModuleID);

                    PublicModel.writeLog(SystemSet.EumLogType.DelData.ToString(), string.Concat("T_Module;key=", moduleMDL.ModuleID,
                                                                                                ";ModuleName=", moduleMDL.ModuleName, ";BH=", moduleMDL.BH));

                    result = true;
                }
            } catch (Exception ex) {
                Common.LogUtil.Debug(this, "删除模块失败", ex);
            }
            return(result);
        }
Beispiel #30
0
        public void UpdateEFileIndex(string archiveListCellRptID, string OrderIndex)
        {
            T_EFile_MDL model = new T_EFile_MDL();

            model = efileBLL.GetModel(ConvertEx.ToInt(archiveListCellRptID));
            if (model != null)
            {
                model.OrderIndex = ConvertEx.ToInt(OrderIndex);
                efileBLL.Update(model);

                PublicModel.writeLog(SystemSet.EumLogType.UpdData.ToString(), string.Concat("T_EFile;key=", model.ArchiveListCellRptID,
                                                                                            ";FileListID=", model.FileListID, ";Title=", model.Title, ";案卷补录-更新电子文件序号"));

                T_FileList_MDL fileListMDL = filelistBLL.GetModel(model.FileListID);
                if (fileListMDL != null)
                {
                    fileListMDL.CONVERT_FLAG = false;   //重新转换PDF
                    filelistBLL.Update(fileListMDL);
                }
            }
        }