| | |
| | | { |
| | | switch (Request["Target"]) |
| | | { |
| | | |
| | | case "change": |
| | | Response.Write(reLoadAccountName(Request["TypeName"].ToString2())); |
| | | break; |
| | | case "GetSuplier": |
| | | LoadCommunication(); |
| | | break; |
| | |
| | | this.selShebei.DataBind(); |
| | | //this.selShebei.Items.Insert(0, new ListItem("全部", "")); |
| | | |
| | | this.selZerenren.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null); |
| | | this.selZerenren.DataTextField = "Name"; |
| | | this.selZerenren.DataValueField = "Keyid"; |
| | | this.selZerenren.DataBind(); |
| | | this.selZerenren.Items.Insert(0, new ListItem("全部", "")); |
| | | this.selZerenren.Value = ""; |
| | | |
| | | this.txtWeixiuTime.Value = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | protected string reLoadAccountName(string selAcoountType) |
| | | { |
| | | var query = new Infrastructure.Query.Query(); |
| | | if (!string.IsNullOrEmpty(selAcoountType)) |
| | | { |
| | | return JsonHelper.GetJsonStringByObject(oA_ShebeiManageBLL.SelectAllModel(query).Where(x => x.Status != 1 && x.Zerenren == selAcoountType.ToInt32())); |
| | | } |
| | | else |
| | | { |
| | | return JsonHelper.GetJsonStringByObject(oA_ShebeiManageBLL.SelectAllModel(query).Where(x => x.Status != 1)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 加载供应商 |
| | | /// </summary> |