| | |
| | | txt_conTel.Focus(); |
| | | return; |
| | | } |
| | | if (txt_status.SelectedIndex <= 0) |
| | | if (txt_isStatus.SelectedIndex <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("状态不能为空!"); |
| | | txt_status.Focus(); |
| | | txt_isStatus.Focus(); |
| | | return; |
| | | } |
| | | string _upGuid = txt_upGuid.Text.Trim().Length > 0 ? txt_upGuid.SelectedValue.ToString() : ""; |
| | |
| | | name = txt_name.Text.Trim(),//名称 |
| | | conPeople = txt_conPeople.Text,//联系人 |
| | | conTel = txt_conPeople.Text,//联系电话 |
| | | status = txt_status.SelectedIndex,//状态 |
| | | isStatus = txt_isStatus.SelectedIndex,//状态 |
| | | factory = txt_factory.Text,//组织编号 |
| | | }; |
| | | try |
| | |
| | | string strReturn = UtilityHelper.HttpPost("", "Organization/GetListPage", json); |
| | | ReturnModel<PageListModel> dd = UtilityHelper.GetTableByJson(strReturn); |
| | | DataTable dt = dd.rtnData.list; |
| | | DataRow[] drGrp = dt.Select("upGuid=''"); |
| | | DataRow[] drGrp = dt.Select("upGuid='' or upguid is null"); |
| | | DataTable dtComList = new DataTable(); |
| | | dtComList.Columns.Add("guid", typeof(string)); |
| | | dtComList.Columns.Add("name", typeof(string)); |