protected static string getDeptName(string codes) { string text = string.Empty; string[] array = codes.Split(new char[] { ',' }); string[] array2 = array; for (int i = 0; i < array2.Length; i++) { string deptCode = array2[i]; text = text + NodeEdit.getDept(deptCode) + ","; } return(text.Remove(text.Length - 1)); }
private void NodeInfoRestore() { DataTable dataTable = FlowTemplateAction.QueryOneNode(this.NodeID); if (dataTable.Rows.Count == 1) { this.hdnOperater.Value = dataTable.Rows[0]["Operater"].ToString(); if ((string)dataTable.Rows[0]["AuditorType"] == "1") { this.GetAuditorType("1"); this.txtOperater.Text = PageHelper.QueryUser(this, dataTable.Rows[0]["Operater"].ToString()); } if ((string)dataTable.Rows[0]["AuditorType"] == "2") { string text = ""; this.GetAuditorType(dataTable.Rows[0]["AuditorType"].ToString()); string text2 = dataTable.Rows[0]["Operater"].ToString(); string[] array = text2.Split(new char[] { ',' }); if (array.Length > 0) { for (int i = 0; i < array.Length; i++) { if (!(array[i] == "")) { text = text + PageHelper.QueryUser(this, array[i]) + ","; } } } this.txtOperater.Text = text; } if ((string)dataTable.Rows[0]["AuditorType"] == "3") { this.GetAuditorType("3"); this.txtOperater.Text = dataTable.Rows[0]["RoleName"].ToString(); } if ((string)dataTable.Rows[0]["AuditorType"] == "4") { this.GetAuditorType("4"); this.txtOperater.Text = dataTable.Rows[0]["RoleName"].ToString(); } if ((string)dataTable.Rows[0]["AuditorType"] == "5") { this.GetAuditorType("5"); this.txtOperater.Text = dataTable.Rows[0]["RoleName"].ToString(); } if ((string)dataTable.Rows[0]["IsAllPass"] == "1") { this.rbIsAllPass1.Checked = true; } else { this.rbIsAllPass2.Checked = true; } if ((string)dataTable.Rows[0]["IsSecValidate"] == "1") { this.CkbIsSec.Checked = true; } else { this.CkbIsSec.Checked = false; } if ((string)dataTable.Rows[0]["IsSelReceiver"] == "1") { this.CkbIsSelReceiver.Checked = true; this.Page.ClientScript.RegisterStartupScript(base.GetType(), "ok", "check();", true); } else { this.CkbIsSelReceiver.Checked = false; } this.RbDueMode.SelectedValue = dataTable.Rows[0]["DueMode"].ToString(); if (this.hdnOperater.Value.Length > 0) { this.hdnOperater.Value.Substring(0, this.hdnOperater.Value.Length - 1); } else { string arg_3C5_0 = this.hdnOperater.Value; } this.txtNodeName.Text = dataTable.Rows[0]["NodeName"].ToString(); this.txtRemark.Text = dataTable.Rows[0]["ConditionDescription"].ToString(); this.txtDuring.Text = dataTable.Rows[0]["During"].ToString(); this.hdnFrontNode.Value = dataTable.Rows[0]["FrontNode"].ToString(); this.txtAuditMain.Text = dataTable.Rows[0]["AuditMain"].ToString(); this.hfldDep.Value = dataTable.Rows[0]["DepCode"].ToString(); this.txtDep.Text = NodeEdit.getDeptName(dataTable.Rows[0]["DepCode"].ToString()); } }