/// <summary> /// 注册请求 /// </summary> /// <param name="company">单位简称</param> /// <param name="fullCompany">单位全称</param> /// <returns>true:请求成功,false:请求失败</returns> public void Register(CompanyAuthorize obj) { //todo: //1. 获取该服务器机器码 //obj.MachineSN = Machine.GetMAC; //obj.Status = 0; //2. 将机器码、单位名称 提交给OMS生成客户授权 //var op= OMSCompanyAuthrizeBLL.Update(obj); var config = new Pharos.Utility.Config(); config.SetAppSettings("CompanyId", obj.CID.ToString()); }
/// <summary> /// 注册请求 /// </summary> /// <param name="company">单位简称</param> /// <param name="fullCompany">单位全称</param> /// <returns>true:请求成功,false:请求失败</returns> public OpResult Register(OMS_CompanyAuthorize obj) { //todo: //1. 获取该服务器机器码 obj.MachineSN = Machine.GetMAC; obj.Useable = "Y"; //2. 将机器码、单位名称 提交给OMS生成客户授权 var op = OMSCompanyAuthrizeBLL.Update(obj); var config = new Pharos.Utility.Config(); config.SetAppSettings("CompanyId", obj.Code.GetValueOrDefault().ToString()); return(op); }