public static InParams NewInParams(string reqType, string proCode) { InParams inparams = new InParams(); SystemConfig sc = SystemContext.SysConfig; //if (proCode != null && proCode.Equals("")) // proCode = sc.ProCode; if (proCode == null || proCode.Equals("")) { proCode = sc.ProCode; } inparams.SetRequestType(reqType); inparams.SetRequestHead("ProCode", proCode != null ? proCode : ""); inparams.SetRequestHead("LinkIP", NetUtil.GetLocalIP()); inparams.SetRequestHead("Computer", ComputerUtil.ComputerName); inparams.SetRequestHead("LoginID", SystemContext.LoginId); inparams.SetRequestHead("IsDebug", sc.IsDebug ? "1" : "0"); inparams.SetRequestHead("CompressResponse", sc.IsCompressResponse ? "1" : "0"); return(inparams); }