protected void InintApproveRule(string tableId) { hfSelectedApproveNode.Value = string.Empty; hfSelectedRequestNode.Value = string.Empty; hfSelectedCheckBox.Value = string.Empty; //通过ID取得审批表选中的节点ID ProcessRuleBLL bll = new ProcessRuleBLL(); DataSet ds = bll.GetNodeIDsByTableID(tableId); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { foreach (DataRow dr in ds.Tables[0].Rows) { if (!hfSelectedRequestNode.Value.Contains(dr["RequestNodeID"].ToString())) { hfSelectedRequestNode.Value += dr["RequestNodeID"].ToString() + ";"; } if (!hfSelectedApproveNode.Value.Contains(dr["ProcessNodeID"].ToString())) { hfSelectedApproveNode.Value += dr["ProcessNodeID"].ToString() + ";"; } } } ds = bll.GetRuleInfoByTableID(tableId); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { txtGroup.Text = ds.Tables[0].Rows[0]["GroupName"].ToString(); txtRequestSPName.Text = ds.Tables[0].Rows[0]["RequestSPName"].ToString(); //txtRuleTableName.Text = ds.Tables[0].Rows[0]["RuleTableName"].ToString(); } ReBindRuleTable(); }