public static string SetGroupAccount(string gcode, string accountlist) { string r = ""; Sys_GroupBll sgb = new Sys_GroupBll(); ArrayList al = new ArrayList(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { sgb.DelGroupAccount(gcode); string[] alarr = accountlist.Split(';'); if (alarr.Length > 0) { DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("gcode", typeof(string))); dt.Columns.Add(new DataColumn("uname", typeof(string))); for (int i = 0; i < alarr.Length; i++) { dt.Rows.Add(new object[] { gcode, alarr[i] }); } if (sgb.SetGroupAccount(dt) > 0) { r = "S"; } else { r = "F"; } } else { r = "F"; } } else { r = iv.badstr; } return(r); }
public static string ReSetGroupAccount(string gcode) { string r = ""; Sys_GroupBll sgb = new Sys_GroupBll(); SessionUserValidate iv = SysValidateBll.ValidateSession(); if (iv.f) { if (sgb.DelGroupAccount(gcode) > 0) { r = "S"; } else { r = "F"; } } else { r = iv.badstr; } return(r); }