当前位置: 首页>>代码示例>>C#>>正文


C# Sites.Clone方法代码示例

本文整理汇总了C#中Sites.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# Sites.Clone方法的具体用法?C# Sites.Clone怎么用?C# Sites.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sites的用法示例。


在下文中一共展示了Sites.Clone方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetSiteInformationByUrl

 public int GetSiteInformationByUrl(ref string ReturnDescription)
 {
     if ((this.Url == null) || (this.Url == ""))
     {
         throw new Exception("Sites 尚未初始化 Url 变量,无法获取信息");
     }
     int returnValue = -1;
     ReturnDescription = "";
     Sites site = new Sites();
     this.Clone(site);
     if (Procedures.P_GetSiteInformationByUrl(this.Url, ref this.ID, ref this.ParentID, ref this.OwnerUserID, ref this.Name, ref this.LogoUrl, ref this.Company, ref this.Address, ref this.PostCode, ref this.ResponsiblePerson, ref this.ContactPerson, ref this.Telephone, ref this.Fax, ref this.Mobile, ref this.Email, ref this.QQ, ref this.ServiceTelephone, ref this.ICPCert, ref this.Level, ref this.ON, ref this.BonusScale, ref this.MaxSubSites, ref this.UseLotteryListRestrictions, ref this.UseLotteryList, ref this.UseLotteryListQuickBuy, ref this._urls, ref this.AdministratorID, ref this.PageTitle, ref this.PageKeywords, ref returnValue, ref ReturnDescription) < 0)
     {
         site.Clone(this);
         ReturnDescription = "数据库读写错误";
         return -1;
     }
     if (returnValue < 0)
     {
         site.Clone(this);
         return returnValue;
     }
     this.Urls = this._urls;
     return 0;
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:24,代码来源:Sites.cs

示例2: GetSiteInformationByUrl

    public int GetSiteInformationByUrl(ref string ReturnDescription)
    {
        if ((Url == null) || (Url == ""))
        {
            throw new Exception("Sites 尚未初始化 Url 变量,无法获取信息");
        }

        int ReturnValue = -1;
        ReturnDescription = "";

        Sites ts = new Sites();
        Clone(ts);

        int Result = DAL.Procedures.P_GetSiteInformationByUrl(Url, ref ID, ref ParentID, ref OwnerUserID, ref Name, ref LogoUrl, ref Company, ref Address, ref PostCode,
            ref ResponsiblePerson, ref ContactPerson, ref Telephone, ref Fax, ref Mobile, ref Email, ref QQ, ref ServiceTelephone, ref ICPCert, ref Level, ref ON,
            ref BonusScale, ref MaxSubSites, ref UseLotteryListRestrictions, ref UseLotteryList, ref UseLotteryListQuickBuy, ref _urls, ref AdministratorID, ref PageTitle, ref PageKeywords,
            ref ReturnValue, ref ReturnDescription);

        if (Result < 0)
        {
            ts.Clone(this);

            ReturnDescription = "数据库读写错误";

            return -1;
        }

        if (ReturnValue < 0)
        {
            ts.Clone(this);

            return ReturnValue;
        }

        Urls = _urls;

        return 0;
    }
开发者ID:ichari,项目名称:ichari,代码行数:38,代码来源:Sites.cs

示例3: btnOK_Click

    protected void btnOK_Click(object sender, EventArgs e)
    {
        #region 判断输入是否完整

        if (tbCompany.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入公司名称。");

            return;
        }

        if (tbAddress.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入公司地址。");

            return;
        }

        if (tbPostCode.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入邮政编码。");

            return;
        }

        if (tbResponsiblePerson.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入负责人姓名。");

            return;
        }

        if (tbContactPerson.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入联系人姓名。");

            return;
        }

        if (tbTelephone.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入电话号码。");

            return;
        }

        if (tbMobile.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入手机号码。");

            return;
        }

        if (tbEmail.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入有效的 Email。");

            return;
        }

        if (tbServiceTelephone.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入技术服务电话号码。");

            return;
        }

        if (tbUrls.Text.Trim() == "")
        {
            Shove._Web.JavaScript.Alert(this.Page, "请输入站点域名列表。");

            return;
        }

        #endregion

        // 开始保存
        Sites ts = new Sites();
        _Site.Clone(ts);

        _Site.Name = tbName.Text.Trim();
        _Site.Company = tbCompany.Text.Trim();
        _Site.ResponsiblePerson = tbResponsiblePerson.Text.Trim();
        _Site.Address = tbAddress.Text.Trim();
        _Site.PostCode = Shove._Convert.ToDBC(tbPostCode.Text.Trim()).Trim();
        _Site.ContactPerson = tbContactPerson.Text.Trim();
        _Site.Telephone = Shove._Convert.ToDBC(tbTelephone.Text.Trim()).Trim();
        _Site.Fax = Shove._Convert.ToDBC(tbFax.Text.Trim()).Trim();
        _Site.Mobile = Shove._Convert.ToDBC(tbMobile.Text.Trim()).Trim();
        _Site.Email = tbEmail.Text.Trim();
        _Site.QQ = Shove._Convert.ToDBC(tbQQ.Text.Trim()).Trim();
        _Site.ServiceTelephone = Shove._Convert.ToDBC(tbServiceTelephone.Text.Trim()).Trim();
        _Site.ICPCert = tbICPCert.Text.Trim();
        _Site.Urls = Shove._Convert.ToDBC(tbUrls.Text).Trim();

        _Site.UseLotteryList = "";

        for (int i = 0; i < g.Rows.Count; i++)
        {
            if (((CheckBox)g.Rows[i].Cells[1].FindControl("cbisUsed")).Checked)
//.........这里部分代码省略.........
开发者ID:ichari,项目名称:ichari,代码行数:101,代码来源:Site.aspx.cs


注:本文中的Sites.Clone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。