private void BindRpt(string fmid) { Flows_ModelInfo byId = Flows_Model.Init().GetById(Convert.ToInt32(this.ViewState["fm"])); this.This_FolwName.Text = byId.Flow_Name; IList all = Flows_ModelStep.Init().GetAll("Flow_ModelID=" + this.ViewState["fm"], "order by id asc"); List<TmpInfo> list = new List<TmpInfo>(); list.Add(new TmpInfo { Tmp1 = "<strong>模型流程基本信息:</strong> " + byId.Flow_Name, Tmp2 = "flow", Tmp3 = "0" }); for (int i = 0; i < all.Count; i++) { Flows_ModelStepInfo flows_ModelStepInfo = all[i] as Flows_ModelStepInfo; TmpInfo tmpInfo = new TmpInfo(); int num = i + 1; tmpInfo.Tmp1 = string.Concat(new object[] { "<strong>第 ", num, " 步 : </strong> ", flows_ModelStepInfo.Step_Name }); tmpInfo.Tmp2 = "step" + num; tmpInfo.Tmp3 = string.Concat(num); tmpInfo.Tmp4 = string.Concat(flows_ModelStepInfo.id); tmpInfo.Tmp5 = string.Concat(flows_ModelStepInfo.Step_Type); list.Add(tmpInfo); } this.rpt.DataSource = list; this.rpt.DataBind(); }
private void Show(string uid) { this.UUserName.Attributes.Add("readonly", "readonly"); Sys_UserInfo byId = Sys_User.Init().GetById(Convert.ToInt32(uid)); this.ViewState["su"] = byId; this.UUserName.Value = byId.UserName; this.PassWord.Value = byId.PassWord; this.PassWord2.Value = byId.PassWord; this.URealName.Value = byId.RealName; this.Sex1.SelectedValue = string.Concat(byId.Sex); this.Birthday.Value = byId.Birthday; this.Phone.Value = byId.Phone; this.RoleID.SelectedValue = string.Concat(byId.RoleID); this.parentID.SelectedValue = string.Concat(byId.DepID); this.Status1.SelectedValue = string.Concat(byId.Status); this.IsLock.Checked = Convert.ToBoolean(byId.IsLock); this.Notes.Value = byId.Notes; this.Tel.Value = byId.Tel; this.JoinTime.Value = byId.JoinTime; this.HomeAddress.Value = byId.HomeAddress; this.PositionName.Value = byId.PositionName; this.Email.Value = byId.Email; this.QQ.Value = byId.QQ; this.Orders.Value = string.Concat(byId.Orders); this.RoleGUID.SelectedValue = string.Concat(byId.MsgTime); this.MemoShare.Checked = Convert.ToBoolean(byId.MemoShare); this.userlist.Value = byId.et6; this.namelist.Value = byId.et5; if (byId.DepGUID == "no") { this.DepGuid.SelectedValue = "no"; } if (!string.IsNullOrEmpty(byId.et4) && byId.et4.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.et4.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } }
private void Show(string cid) { if (!string.IsNullOrEmpty(cid)) { CRMInfo byId = CRM.Init().GetById(Convert.ToInt32(cid)); if (byId != null) { this.ViewState["ci"] = byId; this.CRM_Name.Value = byId.CRM_Name; this.Tel.Value = byId.Tel; this.Fax.Value = byId.Fax; this.Zip.Value = byId.Zip; this.Address.Value = byId.Address; this.MainPeople.Value = byId.MainPeople; this.Position.Value = byId.Position; this.Product.Value = byId.Product; this.TypeName.SelectedValue = byId.TypeName; this.Grade.SelectedValue = byId.Grade; this.QQ.Value = byId.QQ; this.Site.Value = byId.Site; this.Email.Value = byId.Email; if (byId.IsShare == 1) { this.IsShare.SelectedIndex = 1; this.tr.Attributes["style"] = ""; this.userlist.Value = byId.ShareUsers; this.namelist.Value = byId.namelist; } this.Notes.Value = byId.Notes; if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } } }
public Content(MainWindow main) { InitializeComponent(); toggleContent(false); this.main = main; this.infos = TmpInfo.Instance; xml = new UseXML(); }
private void Show() { this.GetFirtNode(); this.TypeID.DataSource = this.li; this.TypeID.DataTextField = "Sh"; this.TypeID.DataValueField = "ID"; this.TypeID.DataBind(); if (!string.IsNullOrEmpty(base.Request.QueryString["pid"])) { PaperInfo byId = Paper.Init().GetById(Convert.ToInt32(base.Request.QueryString["pid"])); this.TypeID.SelectedValue = string.Concat(byId.TypeID); this.PaperName.Value = byId.PaperName; this.Notes.Value = byId.Notes; this.SendDep.Value = byId.SendDep; this.PaperSymbol.Value = byId.PaperSymbol; this.PaperGrade.Value = byId.PaperGrade; this.PaperDate.Value = byId.PaperDate; if (byId.ShareDeps != "") { this.sel.SelectedIndex = 1; this.tr.Attributes["style"] = ""; this.userlist_dep.Value = byId.ShareDeps; this.namelist_dep.Value = byId.namelist; } this.TypeID.SelectedValue = string.Concat(byId.TypeID); if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } }
private void Show(string did) { if (!string.IsNullOrEmpty(did)) { Docs_DocInfo byId = Docs_Doc.Init().GetById(Convert.ToInt32(did)); this.ViewState["di"] = byId; this.DocTitle.Value = byId.DocTitle; this.Notes.Value = byId.Notes; try { this.doctype.SelectedValue = string.Concat(byId.DocTypeID); } catch { this.doctype.SelectedValue = "0"; } if (byId.IsShare == 1) { this.IsShare.SelectedIndex = 1; this.tr.Attributes["style"] = ""; this.userlist.Value = byId.ShareUsers; this.namelist.Value = byId.namelist; } if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } }
private void Show() { if (!string.IsNullOrEmpty(base.Request.QueryString["nid"])) { News_ArticleInfo byId = News_Article.Init().GetById(Convert.ToInt32(base.Request.QueryString["nid"])); this.NewsTitle.Value = byId.NewsTitle; this.Bodys.Value = byId.Notes; this.ComID.SelectedValue = string.Concat(byId.ComID); if (byId.ShareDeps != "") { this.sel.SelectedIndex = 1; this.tr.Attributes["style"] = ""; this.userlist_dep.Value = byId.ShareDeps; this.namelist_dep.Value = byId.namelist; } this.TypeID.SelectedValue = string.Concat(byId.TypeID); if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } IList all = News_Type.Init().GetAll(null, null); this.TypeID.DataTextField = "TypeName"; this.TypeID.DataValueField = "id"; this.TypeID.DataSource = all; this.TypeID.DataBind(); }
public EditContent(MainWindow main) { InitializeComponent(); editLog = false; loading = true; saveEnabled = false; infos = TmpInfo.Instance; cBoxGroups.DataSource = infos.ListGroups; cBoxGroups.DisplayMember = "Name"; cBoxGroups.SelectedIndex = 0; this.main = main; }
private void Show(string mid) { MeetingInfo byId = Meeting.Init().GetById(Convert.ToInt32(mid)); this.ViewState["mi"] = byId; this.Bodys.Value = byId.Bodys; this.CTime.Value = byId.CTime; this.Address.Value = byId.Address; this.Recorder.Value = byId.Recorder; this.ListPerson.Value = byId.ListPerson; this.AbsencePerson.Value = byId.AbsencePerson; this.Chaired.Value = byId.Chaired; this.MainTopics.Value = byId.MainTopics; this.Remarks.Value = byId.Remarks; if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } }
private void Show(string did) { if (!string.IsNullOrEmpty(did)) { WorkLogInfo byId = WorkLog.Init().GetById(Convert.ToInt32(did)); this.ViewState["di"] = byId; this.LogTitle.Value = byId.LogTitle; this.Bodys.Value = byId.Notes; this.userlist.Value = byId.ShareUsers; this.namelist.Value = byId.namelist; this.addTime.Value = byId.AddTime; this.addTime.Disabled = true; if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List <TmpInfo> list = new List <TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } }
protected void Select_btn(object sender, EventArgs e) { DropDownList dropDownList = sender as DropDownList; this.kind_show.Visible = true; if (dropDownList.SelectedValue.Contains(",")) { this.Attachword.Visible = true; string text = dropDownList.SelectedValue.Split(new char[] { ',' })[0]; string text2 = dropDownList.SelectedValue.Split(new char[] { ',' })[1]; if (text2 != "0") { Gov_ModelFileInfo byId = Gov_ModelFile.Init().GetById(Convert.ToInt32(text2)); this.DocBody.Value = byId.DocBody; if (byId.FilePath.Contains("|")) { List<TmpInfo> list = new List<TmpInfo>(); string formTitle = byId.FormTitle; string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string text3 = array[i].Substring(num, array[i].Length - num); string text4 = array[i].Replace("~", ""); tmpInfo.Tmp1 = formTitle; tmpInfo.Tmp2 = text3; tmpInfo.Tmp3 = text4; list.Add(tmpInfo); if (this.LoadOriginalFile == "" && text3.Contains(".")) { string[] array2 = text3.Split(new char[] { '.' }); if (array2[array2.Length - 1].ToLower().Contains("doc")) { this.url = this.url.ToLower().Replace("/manage/gov", ""); this.LoadOriginalFile = this.url + text4; } } } } } } IList all = Gov_ModelStep.Init().GetAll("Flow_ModelID=" + text, "order by id asc"); Gov_ModelInfo byId2 = Gov_Model.Init().GetById(Convert.ToInt32(text)); if (!string.IsNullOrEmpty(byId2.Remark)) { this.nts.Visible = true; this.nts.Attributes.Add("title", byId2.Remark); } this.rpt_steps.DataSource = all; this.rpt_steps.DataBind(); } }
private void Show() { if (!string.IsNullOrEmpty(this.Uid)) { SqlParameter sqlParameter = new SqlParameter(); sqlParameter.ParameterName = "@uid"; sqlParameter.Size = 4; sqlParameter.Value = Convert.ToInt32(this.Uid); SqlParameter sqlParameter2 = new SqlParameter(); sqlParameter2.Direction = ParameterDirection.Output; sqlParameter2.ParameterName = "@pt0"; sqlParameter2.Size = 4; SqlParameter sqlParameter3 = new SqlParameter(); sqlParameter3.Direction = ParameterDirection.Output; sqlParameter3.ParameterName = "@pt1"; sqlParameter3.Size = 4; SqlParameter sqlParameter4 = new SqlParameter(); sqlParameter4.Direction = ParameterDirection.Output; sqlParameter4.ParameterName = "@pt2"; sqlParameter4.Size = 4; SqlParameter sqlParameter5 = new SqlParameter(); sqlParameter5.Direction = ParameterDirection.Output; sqlParameter5.ParameterName = "@pt3"; sqlParameter5.Size = 4; SqlParameter sqlParameter6 = new SqlParameter(); sqlParameter6.Direction = ParameterDirection.Output; sqlParameter6.ParameterName = "@pt4"; sqlParameter6.Size = 4; SqlParameter[] cmdParms = new SqlParameter[] { sqlParameter2, sqlParameter3, sqlParameter4, sqlParameter5, sqlParameter6, sqlParameter }; MsSqlOperate.ExecuteNonQuery(CommandType.StoredProcedure, "Mails_GetAllMailBoxCount", cmdParms); this.sjx.InnerText = sqlParameter2.Value + "/" + sqlParameter6.Value; this.cgx.InnerText = string.Concat(sqlParameter3.Value); this.fjx.InnerText = string.Concat(sqlParameter4.Value); this.ljx.InnerText = string.Concat(sqlParameter5.Value); if (!string.IsNullOrEmpty(base.Request.QueryString["mid"])) { string value = base.Request.QueryString["mid"]; MailsInfo byId = Mails.Init().GetById(Convert.ToInt32(value)); if (byId.ReceiverID == Convert.ToInt32(this.Uid) || byId.SenderID == Convert.ToInt32(this.Uid)) { Mails_DetailInfo byId2 = Mails_Detail.Init().GetById(byId.did); this.Subject.Value = "回复:" + byId.Subject; this.userlist.Value = string.Concat(new object[] { byId.SenderRealName, "#", byId.SenderID, "#", byId.SenderDepName, "," }); this.namelist.Value = byId.SenderRealName + "(" + byId.SenderDepName + "),"; this.Bodys.Value = string.Concat(new string[] { "<br><br><br><span style='font-weight:bold;color:#999999'>", byId.SenderRealName, " (", byId.SenderDepName, ") 在 ", Utils.ConvertDate2(byId.SendTime), " 写道: </span><br>", byId2.Bodys }); if (!string.IsNullOrEmpty(byId2.Attachments) && byId2.Attachments.Contains("|")) { this.Attachword.Visible = true; List<TmpInfo> list = new List<TmpInfo>(); string[] array = byId2.Attachments.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } } if (!string.IsNullOrEmpty(base.Request.QueryString["cid"])) { string value2 = base.Request.QueryString["cid"]; MailsInfo byId = Mails.Init().GetById(Convert.ToInt32(value2)); if (byId.ReceiverID == Convert.ToInt32(this.Uid) || byId.SenderID == Convert.ToInt32(this.Uid)) { Mails_DetailInfo byId2 = Mails_Detail.Init().GetById(byId.did); this.Subject.Value = byId.Subject; if (!string.IsNullOrEmpty(byId2.SendIDs) && !string.IsNullOrEmpty(byId2.SendRealNames)) { this.userlist.Value = byId2.SendIDs; this.namelist.Value = byId2.SendRealNames; } if (!string.IsNullOrEmpty(byId2.CcIDs) && !string.IsNullOrEmpty(byId2.CcRealNames)) { this.userlist_cc.Value = byId2.CcIDs; this.namelist_cc.Value = byId2.CcRealNames; } if (!string.IsNullOrEmpty(byId2.BccIDs) && !string.IsNullOrEmpty(byId2.BccRealNames)) { this.userlist_bcc.Value = byId2.BccIDs; this.namelist_bcc.Value = byId2.BccRealNames; } this.Bodys.Value = byId2.Bodys; if (!string.IsNullOrEmpty(byId2.Attachments) && byId2.Attachments.Contains("|")) { this.Attachword.Visible = true; List<TmpInfo> list = new List<TmpInfo>(); string[] array = byId2.Attachments.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } } if (!string.IsNullOrEmpty(base.Request.QueryString["zid"])) { string value2 = base.Request.QueryString["zid"]; MailsInfo byId = Mails.Init().GetById(Convert.ToInt32(value2)); if (byId.ReceiverID == Convert.ToInt32(this.Uid) || byId.SenderID == Convert.ToInt32(this.Uid)) { Mails_DetailInfo byId2 = Mails_Detail.Init().GetById(byId.did); this.Subject.Value = "转发:" + byId.Subject; this.Bodys.Value = "<br><br>" + byId2.Bodys; if (!string.IsNullOrEmpty(byId2.Attachments) && byId2.Attachments.Contains("|")) { this.Attachword.Visible = true; List<TmpInfo> list = new List<TmpInfo>(); string[] array = byId2.Attachments.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } } if (!string.IsNullOrEmpty(base.Request.QueryString["meeting"])) { MeetingInfo byId3 = Meeting.Init().GetById(Convert.ToInt32(base.Request.QueryString["meeting"])); string format = "<br><br><table style='width:95%;' border='1' cellspacing='0' bordercolor='#c0bdbd' cellpadding='2'><tbody><tr><td style='width:95px;color:#222;font-weight:bold;'> 会议主题:</td><td>{0}</td></tr><tr><td style='color:#222;font-weight:bold;'> 时间/地点:</td><td>{1}</td></tr><tr><td style='color:#222;font-weight:bold;'> 会议主持:</td><td>{2}</td></tr><tr><td style='color:#222;font-weight:bold;'> 记录人员:</td><td>{3}</td></tr><tr><td style='color:#222;font-weight:bold;'>会议参加者:</td><td>{4}</td></tr><tr><td style='color:#222;font-weight:bold;'>会议缺席者:</td><td>{5}</td></tr><tr><td style='color:#222;font-weight:bold;'> 会议纪要:</td><td>{6}</td></tr><tr><td style='color:#222;font-weight:bold;'> 备注:</td><td>{7}</td></tr></tbody></table><br>"; this.Bodys.Value = string.Format(format, new object[] { byId3.MainTopics, byId3.CTime + " " + byId3.Address, byId3.Chaired, byId3.Recorder, byId3.ListPerson, byId3.AbsencePerson, byId3.Bodys, byId3.Remarks }); if (!string.IsNullOrEmpty(byId3.FilePath) && byId3.FilePath.Contains("|")) { this.Attachword.Visible = true; List<TmpInfo> list = new List<TmpInfo>(); string[] array = byId3.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } if (!string.IsNullOrEmpty(base.Request.QueryString["notebook"])) { NoteBookInfo byId4 = NoteBook.Init().GetById(Convert.ToInt32(base.Request.QueryString["notebook"])); string format2 = "<br><br><table style='width:95%;' border='1' cellspacing='0' bordercolor='#c0bdbd' cellpadding='2'><tbody><tr><td style='width:95px;color:#222;font-weight:bold;'> 记事主题:</td><td>{0}</td></tr><tr><td style='width:95px;color:#222;font-weight:bold;'> 记事时间:</td><td>{1}</td></tr><tr><td style='color:#222;font-weight:bold;'> 记事内容:</td><td>{2}</td></tr><tr></tr></tbody></table><br>"; this.Bodys.Value = string.Format(format2, byId4.Subject, Utils.ConvertDate3(byId4.AddTime), byId4.Bodys.Replace("\r\n", "<br>")); } if (!string.IsNullOrEmpty(base.Request.QueryString["privateaddr"])) { PhoneBookInfo byId5 = PhoneBook.Init().GetById(Convert.ToInt32(base.Request.QueryString["privateaddr"])); string format3 = "<br><br><table style='width:95%;' border='1' cellspacing='0' bordercolor='#c0bdbd' cellpadding='2'><tbody><tr><td style='width:95px;color:#222;font-weight:bold;'> 姓名:</td><td>{0}</td></tr><tr><td style='color:#222;font-weight:bold;'> 标签:</td><td>{1}</td></tr><tr></tr><tr><td style='color:#222;font-weight:bold;'> 电话:</td><td>{2}</td></tr><tr></tr><tr><td style='color:#222;font-weight:bold;'> 备注:</td><td>{3}</td></tr><tr></tr></tbody></table><br>"; this.Bodys.Value = string.Format(format3, new object[] { byId5.Person, byId5.TagName, byId5.Phone, byId5.Notes.Replace("\r\n", "<br>") }); } } else { base.Response.Write("<script>alert('会话已过期,请重新登录!');window.location='/InfoTip/Operate_Nologin.aspx?ReturnUrl=" + base.Request.Url.AbsoluteUri + "'</script>"); } }
private void Show(string fid) { FlowsInfo byId = Flows.Init().GetById(Convert.ToInt32(fid)); if (byId.CurrentStepUserList.Contains("#" + this.Uid + "#") || byId.HasOperatedUserList.Contains("#" + this.Uid + "#") || byId.ViewUserList.Contains("#" + this.Uid + "#") || byId.CreatorID == Convert.ToInt32(this.Uid) || this.Modules.Contains("28")) { this.ViewState["Flow"] = byId; this.filepath.Value = byId.CurrentDocPath; this.DocBody.InnerHtml = byId.DocBody; this.Flow_Name1.InnerText = byId.Flow_Name; this.status.InnerText = this.GetStatus(byId.Status); this.creator.InnerText = byId.CreatorRealName + "(" + byId.CreatorDepName + ")"; this.addtime.InnerText = Utils.ConvertDate1(byId.AddTime); this.vlidtime.InnerText = "永不过期"; if (byId.IsValid == 1) { this.vlidtime.InnerText = byId.ValidTime.ToString("yyyy-MM-dd") + " 之前"; } this.currentstepname.InnerText = byId.CurrentStepName; if (!string.IsNullOrEmpty(byId.Remark)) { this.bodys.InnerHtml = byId.Remark.Replace("\n", "<br>"); } IList all = Flows_Doc.Init().GetAll("flow_id=" + byId.id, "order by id asc"); List <TmpInfo> list = new List <TmpInfo>(); List <TmpInfo> list2 = new List <TmpInfo>(); List <TmpInfo> list3 = new List <TmpInfo>(); Flows_DocInfo flows_DocInfo = null; int j; for (int i = 0; i < all.Count; i++) { Flows_DocInfo flows_DocInfo2 = all[i] as Flows_DocInfo; if (i == all.Count - 1) { flows_DocInfo = flows_DocInfo2; } if (flows_DocInfo2.DocPath.Contains("|")) { string[] array = flows_DocInfo2.DocPath.Split(new char[] { '|' }); for (j = 0; j < array.Length; j++) { if (array[j].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[j].LastIndexOf('/') + 1; string tmp = array[j].Substring(num, array[j].Length - num); string s = array[j].Replace("~", ""); tmpInfo.Tmp1 = array[j]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = base.Server.UrlEncode(s); tmpInfo.Tmp4 = string.Concat(new string[] { "<span style='color:#999'>(", flows_DocInfo2.UserRealName, " ", Utils.ConvertDate1(flows_DocInfo2.AddTime), ")</span>" }); list.Add(tmpInfo); } } } } if (flows_DocInfo != null && flows_DocInfo.DocPath.Contains("|")) { string[] array = flows_DocInfo.DocPath.Split(new char[] { '|' }); for (j = 0; j < array.Length; j++) { if (array[j].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[j].LastIndexOf('/') + 1; string tmp = array[j].Substring(num, array[j].Length - num); string s = array[j].Replace("~", ""); tmpInfo.Tmp1 = array[j]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = base.Server.UrlEncode(s); tmpInfo.Tmp4 = string.Concat(new string[] { "<span style='color:#999'>(", flows_DocInfo.UserRealName, " ", Utils.ConvertDate1(flows_DocInfo.AddTime), ")</span>" }); list2.Add(tmpInfo); } } } //j = 0; //IL_52F: //while (j < list2.Count) //{ // TmpInfo tmpInfo2 = list2[j]; // for (int i = 0; i < list.Count; i++) // { // TmpInfo tmpInfo3 = list[i]; // if (tmpInfo2.Tmp1 == tmpInfo3.Tmp1) // { // tmpInfo2.Tmp4 = tmpInfo3.Tmp4; // IL_520: // list3.Add(tmpInfo2); // j++; // goto IL_52F; // } // } // goto IL_520; //} j = 0; while (j < list2.Count) { TmpInfo tmpInfo2 = list2[j]; for (int i = 0; i < list.Count; i++) { TmpInfo tmpInfo3 = list[i]; if (tmpInfo2.Tmp1 == tmpInfo3.Tmp1) { tmpInfo2.Tmp4 = tmpInfo3.Tmp4; break; } } list3.Add(tmpInfo2); j++; } for (j = 0; j < list2.Count; j++) { TmpInfo tmpInfo2 = list2[j]; for (int i = 0; i < list.Count; i++) { TmpInfo tmpInfo3 = list[i]; if (tmpInfo2.Tmp1 == tmpInfo3.Tmp1) { tmpInfo2.Tmp4 = tmpInfo3.Tmp4; list3.Add(tmpInfo2); } } } if (list3.Count > 0) { this.rpt.DataSource = list3; this.rpt.DataBind(); } Flows_StepInfo byId2 = Flows_Step.Init().GetById(byId.CurrentStepID); this.ViewState["CurrentStep"] = byId2; string text = ""; IList all2 = Flows_StepAction.Init().GetAll(string.Concat(new object[] { "OperationStepID=", byId.CurrentStepID, " and FlowID=", byId.id }), "order by id asc"); string[] array2 = byId.CurrentStepUserList.Split(new char[] { ',' }); List <string> list4 = new List <string>(); for (j = 0; j < array2.Length; j++) { if (array2[j].Contains("#")) { list4.Add(array2[j].Split(new char[] { '#' })[0].Trim()); } } foreach (object current in all2) { Flows_StepActionInfo flows_StepActionInfo = current as Flows_StepActionInfo; if (flows_StepActionInfo.Operation == 1) { text = text + flows_StepActionInfo.UserRealName + "[已签/同意], "; if (list4.Contains(flows_StepActionInfo.UserRealName.Trim())) { list4.Remove(flows_StepActionInfo.UserRealName.Trim()); } } if (flows_StepActionInfo.Operation == -1) { text = text + flows_StepActionInfo.UserRealName + "[已签/不同意], "; if (list4.Contains(flows_StepActionInfo.UserRealName.Trim())) { list4.Remove(flows_StepActionInfo.UserRealName.Trim()); } } } foreach (string current2 in list4) { text = text + current2 + "[未审批], "; } this.currentuserlist.InnerHtml = text; IList all3 = Flows_StepAction.Init().GetAll("FlowID=" + byId.id, "order by id asc"); IList all4 = Flows_Doc.Init().GetAll("StepAction_ID=0 and flow_id=" + byId.id, null); Flows_DocInfo flows_DocInfo3 = all4[0] as Flows_DocInfo; base.Server.UrlEncode(flows_DocInfo3.DocPath.Replace("~", "")); string text2 = this.yjs; this.yjs = string.Concat(new string[] { text2, "0、<u>流程申请</u> ", byId.CreatorRealName, " 在 ", Utils.ConvertDate2(byId.AddTime), " 发起流程(申请人) <br>" }); foreach (object current in all3) { Flows_StepActionInfo flows_StepActionInfo = current as Flows_StepActionInfo; IList all5 = Flows_Doc.Init().GetAll("StepAction_ID=" + flows_StepActionInfo.id, null); if (all5.Count == 0) { object obj = this.yjs; this.yjs = string.Concat(new object[] { obj, all3.IndexOf(current) + 1, "、<u>", flows_StepActionInfo.OperationStepName, "</u> ", flows_StepActionInfo.UserRealName, " 在 ", Utils.ConvertDate2(flows_StepActionInfo.AddTime), " 已审 <strong style='color:#ff0000'>", flows_StepActionInfo.OperationWord, "</strong><br>" }); } else { Flows_DocInfo flows_DocInfo4 = all5[0] as Flows_DocInfo; base.Server.UrlEncode(flows_DocInfo4.DocPath.Replace("~", "")); object obj = this.yjs; this.yjs = string.Concat(new object[] { obj, all3.IndexOf(current) + 1, "、<u>", flows_StepActionInfo.OperationStepName, "</u> ", flows_StepActionInfo.UserRealName, " 在 ", Utils.ConvertDate2(flows_StepActionInfo.AddTime), " 已审 ", flows_StepActionInfo.OperationWord, "<br>" }); } } if (byId.ViewUserList.Contains(",")) { string[] array3 = byId.ViewUserList.Split(new char[] { ',' }); for (j = 0; j < array3.Length; j++) { if (array3[j].Contains("#")) { HtmlGenericControl expr_A97 = this.viewuserlist; expr_A97.InnerText = expr_A97.InnerText + array3[j].Split(new char[] { '#' })[0] + ","; } } } if (list4.Contains(this.RealName.Trim()) && byId.Status == 0) { this.displays.Visible = true; this.b1.Enabled = true; this.b2.Enabled = true; if (byId2.RightToFinish == 1) { this.b3.Visible = true; this.b3.Enabled = true; } } } else { base.Response.Write("<script>alert('您没有查看权限');window.location='FlowList.aspx?action=verify';</script>"); } }
private void Show(string fid) { GovInfo byId = Gov.Init().GetById(Convert.ToInt32(fid)); if (byId.CurrentStepUserList.Contains("#" + this.Uid + "#") || byId.HasOperatedUserList.Contains("#" + this.Uid + "#") || byId.CreatorID == Convert.ToInt32(this.Uid) || this.Modules.Contains("38")) { this.ViewState["Flow"] = byId; this.filepath.Value = byId.CurrentDocPath; this.DocBody.InnerHtml = byId.DocBody; this.Flow_Name1.InnerText = byId.Flow_Name; this.ModelType.InnerText = this.GetModelType(byId.ComID); this.secret.InnerText = byId.Secret; this.status.InnerText = this.GetStatus(byId.Status); this.creator.InnerText = byId.CreatorRealName + "(" + byId.CreatorDepName + ")"; this.addtime.InnerText = Utils.ConvertDate2(byId.AddTime); this.DocNo.InnerText = byId.DocNo; this.vlidtime.InnerText = "自动归档"; if (byId.IsValid == 1) { this.vlidtime.InnerText = byId.ValidTime.ToString("yyyy-MM-dd") + " 之前归档"; } this.currentstepname.InnerText = byId.CurrentStepName; if (!string.IsNullOrEmpty(byId.Remark)) { this.bodys.InnerHtml = byId.Remark.Replace("\n", "<br>"); } if (!string.IsNullOrEmpty(byId.Flow_Files) && byId.Flow_Files.Contains("|")) { List<TmpInfo> list = new List<TmpInfo>(); string[] array = byId.Flow_Files.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string s = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = base.Server.UrlEncode(s); list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } Gov_StepInfo byId2 = Gov_Step.Init().GetById(byId.CurrentStepID); this.ViewState["CurrentStep"] = byId2; string text = ""; IList all = Gov_StepAction.Init().GetAll(string.Concat(new object[] { "OperationStepID=", byId.CurrentStepID, " and FlowID=", byId.id }), "order by id asc"); string[] array2 = byId.CurrentStepUserList.Split(new char[] { ',' }); List<string> list2 = new List<string>(); for (int i = 0; i < array2.Length; i++) { if (array2[i].Contains("#")) { list2.Add(array2[i].Split(new char[] { '#' })[0].Trim()); } } foreach (object current in all) { Gov_StepActionInfo gov_StepActionInfo = current as Gov_StepActionInfo; if (gov_StepActionInfo.Operation == 1) { text = text + gov_StepActionInfo.UserRealName + "[已审/同意], "; if (list2.Contains(gov_StepActionInfo.UserRealName.Trim())) { list2.Remove(gov_StepActionInfo.UserRealName.Trim()); } } if (gov_StepActionInfo.Operation == -1) { text = text + gov_StepActionInfo.UserRealName + "[已阅/不同意], "; if (list2.Contains(gov_StepActionInfo.UserRealName.Trim())) { list2.Remove(gov_StepActionInfo.UserRealName.Trim()); } } } foreach (string current2 in list2) { text = text + current2 + "[未操作], "; } this.currentuserlist.InnerHtml = text; IList all2 = Gov_StepAction.Init().GetAll("FlowID=" + byId.id, "order by id asc"); IList all3 = Gov_Doc.Init().GetAll("StepAction_ID=0 and flow_id=" + byId.id, null); Gov_DocInfo gov_DocInfo = all3[0] as Gov_DocInfo; base.Server.UrlEncode(gov_DocInfo.DocPath.Replace("~", "")); string text2 = this.yjs; this.yjs = string.Concat(new string[] { text2, "0、<u>发文拟稿</u> ", byId.CreatorRealName, " 在 ", Utils.ConvertDate2(byId.AddTime), " 发起公文(初稿) <br>" }); foreach (object current in all2) { Gov_StepActionInfo gov_StepActionInfo = current as Gov_StepActionInfo; IList all4 = Gov_Doc.Init().GetAll("StepAction_ID=" + gov_StepActionInfo.id, null); if (all4.Count == 0) { object obj = this.yjs; this.yjs = string.Concat(new object[] { obj, all2.IndexOf(current) + 1, "、<u>", gov_StepActionInfo.OperationStepName, "</u> ", gov_StepActionInfo.UserRealName, " 在 ", Utils.ConvertDate2(gov_StepActionInfo.AddTime), " 已阅 <strong style='color:#ff0000'>", gov_StepActionInfo.OperationWord, "</strong><br>" }); } else { Gov_DocInfo gov_DocInfo2 = all4[0] as Gov_DocInfo; base.Server.UrlEncode(gov_DocInfo2.DocPath.Replace("~", "")); object obj = this.yjs; this.yjs = string.Concat(new object[] { obj, all2.IndexOf(current) + 1, "、<u>", gov_StepActionInfo.OperationStepName, "</u> ", gov_StepActionInfo.UserRealName, " 在 ", Utils.ConvertDate2(gov_StepActionInfo.AddTime), " 已阅 <strong style='color:#ff0000'>", gov_StepActionInfo.OperationWord, "</strong><br>" }); } } if (list2.Contains(this.RealName.Trim()) && byId.Status == 0) { this.displays.Visible = true; this.b1.Enabled = true; this.b2.Enabled = true; if (byId2.RightToFinish == 1) { this.b3.Visible = true; this.b3.Enabled = true; } } } else { base.Response.Write("<script>alert('您没有查看权限');window.location='AppList.aspx?action=verify';</script>"); } }
private void Show() { SqlParameter sqlParameter = new SqlParameter(); sqlParameter.ParameterName = "@uid"; sqlParameter.Size = 50; sqlParameter.Value = this.Uid; SqlParameter sqlParameter2 = new SqlParameter(); sqlParameter2.Direction = ParameterDirection.Output; sqlParameter2.ParameterName = "@pt0"; sqlParameter2.Size = 4; SqlParameter sqlParameter3 = new SqlParameter(); sqlParameter3.Direction = ParameterDirection.Output; sqlParameter3.ParameterName = "@pt1"; sqlParameter3.Size = 4; SqlParameter sqlParameter4 = new SqlParameter(); sqlParameter4.Direction = ParameterDirection.Output; sqlParameter4.ParameterName = "@pt2"; sqlParameter4.Size = 4; SqlParameter sqlParameter5 = new SqlParameter(); sqlParameter5.Direction = ParameterDirection.Output; sqlParameter5.ParameterName = "@pt3"; sqlParameter5.Size = 4; SqlParameter[] cmdParms = new SqlParameter[] { sqlParameter2, sqlParameter3, sqlParameter4, sqlParameter5, sqlParameter }; MsSqlOperate.ExecuteNonQuery(CommandType.StoredProcedure, "Tasks_GetTaskCount", cmdParms); this.t_all.InnerText = string.Concat(sqlParameter2.Value); this.t_exeute.InnerText = string.Concat(sqlParameter3.Value); this.t_manage.InnerText = string.Concat(sqlParameter4.Value); this.t_create.InnerText = string.Concat(sqlParameter5.Value); this.GetFirtNode(); this.TypeID.DataSource = this.li; this.TypeID.DataTextField = "Sh"; this.TypeID.DataValueField = "ID"; this.TypeID.DataBind(); if (!string.IsNullOrEmpty(base.Request.QueryString["tid"])) { this.user_manager.Disabled = true; TasksInfo byId = Tasks.Init().GetById(Convert.ToInt32(base.Request.QueryString["tid"])); if (byId.ManageUserList.Contains("#" + this.Uid + "#")) { this.ViewState["ti"] = byId; this.TaskName.Value = byId.TaskName; this.TypeID.SelectedValue = string.Concat(byId.TypeID); this.userlist.Value = byId.ManageUserList; this.namelist.Value = byId.ManageNameList; this.userlist_cc.Value = byId.ExecuteUserList; this.namelist_cc.Value = byId.ExecuteNameList; this.Bodys.Value = byId.Notes; this.ExpectTime.Value = byId.ExpectTime; this.Important.Value = byId.Important; this.IsOtherSee.Checked = Convert.ToBoolean(byId.IsOtherSee); this.OnceSubmit.Checked = Convert.ToBoolean(byId.OnceSubmit); if (!string.IsNullOrEmpty(byId.FilePath) && byId.FilePath.Contains("|")) { this.Attachword.Visible = true; List<TmpInfo> list = new List<TmpInfo>(); string[] array = byId.FilePath.Split(new char[] { '|' }); for (int i = 0; i < array.Length; i++) { if (array[i].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[i].LastIndexOf('/') + 1; string tmp = array[i].Substring(num, array[i].Length - num); string tmp2 = array[i].Replace("~", ""); tmpInfo.Tmp1 = array[i]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = tmp2; list.Add(tmpInfo); } } this.rpt.DataSource = list; this.rpt.DataBind(); } } } }
private void Show(string fid) { SqlParameter sqlParameter = new SqlParameter(); sqlParameter.ParameterName = "@uid"; sqlParameter.Size = 50; sqlParameter.Value = this.Uid; SqlParameter sqlParameter2 = new SqlParameter(); sqlParameter2.Direction = ParameterDirection.Output; sqlParameter2.ParameterName = "@pt1"; sqlParameter2.Size = 4; SqlParameter sqlParameter3 = new SqlParameter(); sqlParameter3.Direction = ParameterDirection.Output; sqlParameter3.ParameterName = "@pt2"; sqlParameter3.Size = 4; SqlParameter sqlParameter4 = new SqlParameter(); sqlParameter4.Direction = ParameterDirection.Output; sqlParameter4.ParameterName = "@pt3"; sqlParameter4.Size = 4; SqlParameter sqlParameter5 = new SqlParameter(); sqlParameter5.Direction = ParameterDirection.Output; sqlParameter5.ParameterName = "@pt4"; sqlParameter5.Size = 4; SqlParameter[] cmdParms = new SqlParameter[] { sqlParameter2, sqlParameter3, sqlParameter4, sqlParameter5, sqlParameter }; MsSqlOperate.ExecuteNonQuery(CommandType.StoredProcedure, "Flows_GetUserFlowBoxCount", cmdParms); this.wdpy.InnerText = string.Concat(sqlParameter2.Value); this.yjpy.InnerText = string.Concat(sqlParameter3.Value); this.wdsq.InnerText = string.Concat(sqlParameter4.Value); this.view.InnerText = string.Concat(sqlParameter5.Value); FlowsInfo byId = Flows.Init().GetById(Convert.ToInt32(fid)); if (byId.CurrentStepUserList.Contains("#" + this.Uid + "#") || byId.HasOperatedUserList.Contains("#" + this.Uid + "#") || byId.ViewUserList.Contains("#" + this.Uid + "#") || byId.CreatorID == Convert.ToInt32(this.Uid) || this.Modules.Contains("28")) { this.ViewState["Flow"] = byId; this.filepath.Value = byId.CurrentDocPath; this.DocBody.Value = byId.DocBody; this.Flow_Name1.InnerText = byId.Flow_Name; this.ModelType.InnerText = this.GetModelType(byId.ComID); this.ke_isread = ", afterCreate : function(id) { KE.toolbar.disable(id, []); KE.readonly(id); KE.g[id].newTextarea.disabled = true; } "; this.url = this.url.ToLower().Replace("/manage/flow", ""); this.LoadOriginalFile = this.url + byId.CurrentDocPath.Replace("~", ""); this.tuli.InnerHtml = " <a href='Flow_Graph.aspx?fl=" + byId.id + "' target=_blank>[点击查看]</a>"; this.flowNo.InnerText = byId.AddTime.Year + "-" + (100000 + byId.id); this.status.InnerText = this.GetStatus(byId.Status); this.creator.InnerText = byId.CreatorRealName + "(" + byId.CreatorDepName + ")"; this.addtime.InnerText = Utils.ConvertDate2(byId.AddTime); this.vlidtime.InnerText = "永不过期"; if (byId.IsValid == 1) { this.vlidtime.InnerText = byId.ValidTime.ToString("yyyy-MM-dd") + " 之前"; } this.currentstepname.InnerText = byId.CurrentStepName; if (!string.IsNullOrEmpty(byId.Remark)) { this.bodys.InnerHtml = byId.Remark.Replace("\n", "<br>"); } IList all = Flows_Doc.Init().GetAll("flow_id=" + byId.id, "order by id asc"); List <TmpInfo> list = new List <TmpInfo>(); List <TmpInfo> list2 = new List <TmpInfo>(); List <TmpInfo> list3 = new List <TmpInfo>(); Flows_DocInfo flows_DocInfo = null; int j; for (int i = 0; i < all.Count; i++) { Flows_DocInfo flows_DocInfo2 = all[i] as Flows_DocInfo; if (i == all.Count - 1) { flows_DocInfo = flows_DocInfo2; } if (flows_DocInfo2.DocPath.Contains("|")) { string[] array = flows_DocInfo2.DocPath.Split(new char[] { '|' }); for (j = 0; j < array.Length; j++) { if (array[j].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[j].LastIndexOf('/') + 1; string tmp = array[j].Substring(num, array[j].Length - num); string s = array[j].Replace("~", ""); tmpInfo.Tmp1 = array[j]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = base.Server.UrlEncode(s); tmpInfo.Tmp4 = string.Concat(new string[] { " <span style='color:#999'> - (", flows_DocInfo2.UserRealName, " ", Utils.ConvertDate1(flows_DocInfo2.AddTime), ")</span>" }); list.Add(tmpInfo); } } } } if (flows_DocInfo != null && flows_DocInfo.DocPath.Contains("|")) { string[] array = flows_DocInfo.DocPath.Split(new char[] { '|' }); for (j = 0; j < array.Length; j++) { if (array[j].Trim() != "") { TmpInfo tmpInfo = new TmpInfo(); int num = array[j].LastIndexOf('/') + 1; string tmp = array[j].Substring(num, array[j].Length - num); string s = array[j].Replace("~", ""); tmpInfo.Tmp1 = array[j]; tmpInfo.Tmp2 = tmp; tmpInfo.Tmp3 = base.Server.UrlEncode(s); tmpInfo.Tmp4 = string.Concat(new string[] { " <span style='color:#999'> - (", flows_DocInfo.UserRealName, " ", Utils.ConvertDate1(flows_DocInfo.AddTime), ")</span>" }); list2.Add(tmpInfo); } } } j = 0; //IL_74B: while (j < list2.Count) { TmpInfo tmpInfo2 = list2[j]; for (int i = 0; i < list.Count; i++) { TmpInfo tmpInfo3 = list[i]; if (tmpInfo2.Tmp1 == tmpInfo3.Tmp1) { tmpInfo2.Tmp4 = tmpInfo3.Tmp4; // //IL_73C: //list3.Add(tmpInfo2); //j++; ////goto IL_74B; break; } } list3.Add(tmpInfo2); j++; //goto IL_73C; } if (list3.Count > 0) { this.rpt.DataSource = list3; this.rpt.DataBind(); } Flows_StepInfo byId2 = Flows_Step.Init().GetById(byId.CurrentStepID); this.ViewState["CurrentStep"] = byId2; string text = ""; IList all2 = Flows_StepAction.Init().GetAll(string.Concat(new object[] { "OperationStepID=", byId.CurrentStepID, " and FlowID=", byId.id }), "order by id asc"); string[] array2 = byId.CurrentStepUserList.Split(new char[] { ',' }); List <string> list4 = new List <string>(); for (j = 0; j < array2.Length; j++) { if (array2[j].Contains("#")) { list4.Add(array2[j].Split(new char[] { '#' })[0].Trim()); } } foreach (object current in all2) { Flows_StepActionInfo flows_StepActionInfo = current as Flows_StepActionInfo; if (flows_StepActionInfo.Operation == 1) { text = text + flows_StepActionInfo.UserRealName + "[已签/同意], "; if (list4.Contains(flows_StepActionInfo.UserRealName.Trim())) { list4.Remove(flows_StepActionInfo.UserRealName.Trim()); } } if (flows_StepActionInfo.Operation == -1) { text = text + flows_StepActionInfo.UserRealName + "[已签/不同意], "; if (list4.Contains(flows_StepActionInfo.UserRealName.Trim())) { list4.Remove(flows_StepActionInfo.UserRealName.Trim()); } } } foreach (string current2 in list4) { text = text + current2 + "[未审批], "; } this.currentuserlist.InnerHtml = text; IList all3 = Flows_StepAction.Init().GetAll("FlowID=" + byId.id, "order by id asc"); IList all4 = Flows_Doc.Init().GetAll("StepAction_ID=0 and flow_id=" + byId.id, null); Flows_DocInfo flows_DocInfo3 = all4[0] as Flows_DocInfo; base.Server.UrlEncode(flows_DocInfo3.DocPath.Replace("~", "")); object obj = this.yjs; this.yjs = string.Concat(new object[] { obj, "0、<u>流程申请</u> ", byId.CreatorRealName, " 在 ", Utils.ConvertDate2(byId.AddTime), " 发起流程(申请人) <a href='../../Manage/Flow/DocBodyView.aspx?gid=", flows_DocInfo3.id, "' target='_blank' ><strong>查看申请人原件</strong></a> <br>" }); foreach (object current in all3) { Flows_StepActionInfo flows_StepActionInfo = current as Flows_StepActionInfo; IList all5 = Flows_Doc.Init().GetAll("StepAction_ID=" + flows_StepActionInfo.id, null); if (all5.Count == 0) { obj = this.yjs; this.yjs = string.Concat(new object[] { obj, all3.IndexOf(current) + 1, "、<u>", flows_StepActionInfo.OperationStepName, "</u> ", flows_StepActionInfo.UserRealName, " 在 ", Utils.ConvertDate2(flows_StepActionInfo.AddTime), " 已审 <strong style='color:#ff0000'>", flows_StepActionInfo.OperationWord, "</strong><br>" }); } else { Flows_DocInfo flows_DocInfo4 = all5[0] as Flows_DocInfo; base.Server.UrlEncode(flows_DocInfo4.DocPath.Replace("~", "")); obj = this.yjs; this.yjs = string.Concat(new object[] { obj, all3.IndexOf(current) + 1, "、<u>", flows_StepActionInfo.OperationStepName, "</u> ", flows_StepActionInfo.UserRealName, " 在 ", Utils.ConvertDate2(flows_StepActionInfo.AddTime), " 已审 ", flows_StepActionInfo.OperationWord, " <a href='../../Manage/Flow/DocBodyView.aspx?gid=", flows_DocInfo4.id, "' target='_blank' ><strong>查看文件变动</strong></a> <br>" }); } } if (byId.ViewUserList.Contains(",")) { string[] array3 = byId.ViewUserList.Split(new char[] { ',' }); for (j = 0; j < array3.Length; j++) { if (array3[j].Contains("#")) { HtmlGenericControl expr_CF1 = this.viewuserlist; expr_CF1.InnerText = expr_CF1.InnerText + array3[j].Split(new char[] { '#' })[0] + ","; } } } if (list4.Contains(this.RealName.Trim()) && byId.Status == 0) { this.ke_isread = ""; this.display.Visible = true; this.b1.Enabled = true; this.b2.Enabled = true; IList all6 = Sys_Seal.Init().GetAll("uid=" + this.Uid + " and status=1", null); if (all6.Count > 0) { this.seal.Visible = true; this.seallist.DataSource = all6; this.seallist.DataTextField = "SealName"; this.seallist.DataValueField = "id"; this.seallist.DataBind(); } if (byId2.RightToFinish == 1) { this.b3.Enabled = true; } if (byId2.IsUserFile == 1) { for (j = 0; j < this.rpt.Items.Count; j++) { HtmlInputCheckBox htmlInputCheckBox = this.rpt.Items[j].FindControl("chk") as HtmlInputCheckBox; htmlInputCheckBox.Disabled = false; } } } } else { base.Response.Write("<script>alert('您没有查看权限');window.location='Flow_List.aspx?action=verify';</script>"); } }