/// <summary> /// 添加分管部门 /// </summary> public void AddFgbm(string strGuid, string depCodeStr) { bllSys_UserChargeDep.Delete(p => p.UserChargeDep_ExecutiveOfficerID == strGuid);//" UserChargeDep_ExecutiveOfficerID='" + strGuid + "'" if (depCodeStr != "") { string[] arrStr = depCodeStr.Split(','); for (int i = 0; i < arrStr.Length; i++) { Sys_UserChargeDep modelFgbm = new Sys_UserChargeDep(); modelFgbm.UserChargeDepID = Guid.NewGuid().ToString(); modelFgbm.UserChargeDep_ExecutiveOfficerID = strGuid; modelFgbm.UserChargeDep_ChargeCrewID = ""; modelFgbm.UserChargeDep_ChargeCrewDepCode = arrStr[i]; string errmsg = string.Empty; bllSys_UserChargeDep.Add(modelFgbm); } } }
/// <summary> /// 添加分管部门 /// </summary> public void AddFgbm(string strGuid) { bllSys_UserChargeDep.DeleteWhere(" UserChargeDep_ExecutiveOfficerID='" + strGuid + "'"); if (strid != "") { string[] arrStr = strid.Split(','); hidCount.Value = arrStr.Length.ToString(); for (int i = 0; i < arrStr.Length; i++) { Sys_UserChargeDep modelFgbm = new Sys_UserChargeDep(); modelFgbm.UserChargeDepID = Guid.NewGuid().ToString(); modelFgbm.UserChargeDep_ExecutiveOfficerID = strGuid; modelFgbm.UserChargeDep_ChargeCrewID = ""; modelFgbm.UserChargeDep_ChargeCrewDepCode = arrStr[i]; string errmsg = string.Empty; bllSys_UserChargeDep.Add(modelFgbm, out errmsg); } } else { hidCount.Value = "0"; } }