protected void ddlUserType_SelectedIndexChanged(object sender, EventArgs e) { Sys_UserChargeDepBLL bll = new Sys_UserChargeDepBLL(); //bll.DeleteWhere(" UserChargeDep_ExecutiveOfficerID='" + this.hid_AccountId.Value + "'"); bll.Delete(p => p.UserChargeDep_ExecutiveOfficerID == this.hid_AccountId.Value); string pwd = txtLoginPwd.Text.Trim(); RoleBind(); txtLoginPwd.Attributes.Add("value", pwd); }
/// <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); } } }