Пример #1
0
        private bool ExtendLicenseOnline(out string errorCode)
        {
            errorCode = string.Empty;
            string V_0 = this.SitePath;

            if (string.IsNullOrEmpty(V_0))
            {
                errorCode = "\u6E65\u6573\u692F\u3565\u2022\u616E\u656D\u223D\u7376\u745F\u7261\u6567\u5374\u6863\u6D65\u2261\u0D3E\u090A\u3C09\u494C\u4B4E\u6820\u6572\u3D66\u2E22\u2F2E\u6564\u6166\u6C75\u2E74\u7363\u2273\u7220\u6C65\u223D\u7473\u6C79\u7365\u6568\u7465\u3E22\u0A0D\u3C09\u482F\u4145\u3E44\u0A0D\u3C09\u6F62\u7964\u0D3E\u090A\u0D09\u3C0A\u4421\u434F\u5954";
                return(false);
            }
            BusinessOnline.RegistrationInfo V_1 = new BusinessOnline.RegistrationInfo();
            V_1.SerialNumber = this.txtSerialNumber.Text;
            V_1.CompanyName  = txtCompanyName.Text;
            V_1.ContactName  = txtUserName.Text;
            V_1.RequestCode  = RegBroker.GenerateRequestCode(V_1.SerialNumber);
            //LicenseService V_2 = new LicenseService();
            //WebClientProtocol.Url(string.Format("\u2022\u616E\u656D\u223D\u7376\u745F\u7261\u6567\u5374\u6863\u6D65\u2261\u0D3E\u090A\u3C09\u494C\u4B4E\u6820\u6572\u3D66\u2E22\u2F2E\u6564\u6166\u6C75\u2E74" ,V_0);
            //string V_3 = V_2.ExtendLicense(V_1.RegDocument);
            //if(V_3.IndexOf( "\u6E65\u6573\u692F\u3565\u2022\u616E\u656D\u223D\u7376\u745F\u7261\u6567\u5374\u6863\u6D65\u2261\u0D3E\u090A\u3C09\u494C\u4B4E\u6820\u6572\u3D66\u2E22\u2F2E\u6564\u6166\u6C75\u2E74\u7363\u2273\u7220\u6C65\u223D\u7473\u6C79\u7365\u6568\u7465\u3E22\u0A0D\u3C09\u482F\u4145\u3E44\u0A0D\u3C09\u6F62\u7964\u0D3E\u090A\u0D09\u3C0A\u4421\u434F\u5954")>0)
            //{
            //    errorCode=V_3;
            //    return false;
            //}
            //if(V_3==string.Empty)
            //{
            //    errorCode=V_3;
            //    return false;
            //}
            //this.UpdateLicense(V_3);
            return(true);
        }
Пример #2
0
 protected void btnGetReqCode_Click(object sender, EventArgs e)
 {
     if (!this.ValidateSerialNumber(this.txtSerialNumber.Text))
     {
         this.vldSerialNum.IsValid = false;
     }
     else
     {
         this.txtReqCode.Text = RegBroker.GenerateRequestCode(this.txtSerialNumber.Text);
     }
 }