| | |
| | | request.ContentType = "application/json"; |
| | | request.Headers.Add("token", GetBasicAuthTicket()); |
| | | request.Accept = "*/*"; |
| | | request.Timeout = 150000; |
| | | // request.Timeout = 150000; |
| | | request.AllowAutoRedirect = false; |
| | | request.ServicePoint.Expect100Continue = false; |
| | | HttpRequestCachePolicy noCachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.NoCacheNoStore); |
| | |
| | | if (_btnAry2.Length > 0) |
| | | { |
| | | var _btnType = _btnAry2[0]; |
| | | _btnType.Enabled = !isEdt; |
| | | } |
| | | var _btnAry3 = controls.Find("btnCopyXls", false); |
| | | if (_btnAry3.Length > 0) |
| | | { |
| | | var _btnType = _btnAry3[0]; |
| | | _btnType.Enabled = !isEdt; |
| | | } |
| | | var _btnAry4 = controls.Find("btnDown", false); |
| | | if (_btnAry4.Length > 0) |
| | | { |
| | | var _btnType = _btnAry4[0]; |
| | | _btnType.Enabled = !isEdt; |
| | | } |
| | | foreach (JProperty property in dynamicObject.Properties()) |
| | |
| | | if (colType is UcLookOrg) |
| | | { |
| | | var txt = colType as UcLookOrg; |
| | | txt.SetIdOrCode(strVal); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定组织all |
| | | if (colType is UcLookOrgAll) |
| | | { |
| | | var txt = colType as UcLookOrgAll; |
| | | txt.SetIdOrCode(strVal); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定组织All |
| | | if (ctrl is UcLookOrgAll) |
| | | { |
| | | var txt = ctrl as UcLookOrgAll; |
| | | txt.SetIdOrCode("-1"); |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定用户 |
| | | if (ctrl is UcLookUser) |
| | | { |
| | |
| | | if (ctrl is UcLookOrg) |
| | | { |
| | | var txt = ctrl as UcLookOrg; |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | | //自定组织 |
| | | if (ctrl is UcLookOrgAll) |
| | | { |
| | | var txt = ctrl as UcLookOrgAll; |
| | | txt.IsReadly = isEdt; |
| | | continue; |
| | | } |
| | |
| | | return ""; |
| | | } |
| | | } |
| | | public static string GetFirstOrg(UserControl.UcLookOrgAll txt_erpSczz) |
| | | { |
| | | string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid; |
| | | var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, " and IS_STATUS=1"); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", "Organization/GetListPage", json); |
| | | var _obj = UtilityHelper.ReturnToDynamic(strReturn); |
| | | string _extendText = _obj.rtnData.extendText; |
| | | string[] _dftOrg = _extendText.Split(','); |
| | | if (_dftOrg.Length > 0) |
| | | { |
| | | txt_erpSczz.SetIdOrCode(_dftOrg[0].Trim()); |
| | | return _dftOrg[0].Trim(); |
| | | } |
| | | return ""; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ""; |
| | | } |
| | | } |
| | | } |
| | | |
| | | /// <summary> |