Esempio n. 1
0
        /// <summary>
        /// 绑定公版详细信息
        /// </summary>
        /// <param name="id"></param>
        void BindDetail(int id)
        {
            model = bll.GetModel(id);

            txtNameInfo.Text = model.NameInfo;
            txtNum.Text      = model.Num.ToString();
            txtRemark.Text   = model.Remark;
            txtSortNum.Text  = model.SortNum.ToString();
            ckState.Checked  = model.StateInfo == 1 ? true : false;
        }
Esempio n. 2
0
 /// <summary>
 /// 获取公版名称
 /// </summary>
 /// <returns></returns>
 public string GetCustomerName(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return("--");
     }
     else
     {
         BLL.PublicVersion   bllCustomer = new BLL.PublicVersion();
         Model.PublicVersion model       = bllCustomer.GetModel(int.Parse(id));
         if (string.IsNullOrEmpty(model.NameInfo))
         {
             return("--");
         }
         else
         {
             return(model.NameInfo);
         }
     }
 }