示例#1
0
        public string GetTechnologyName(int id)
        {
            BLL.Technology   bllTechnology = new BLL.Technology();
            Model.Technology model         = bllTechnology.GetModel(id);

            return(bllTechnology.GetModel(model.ParentId).NameInfo + ":" + model.NameInfo);
        }
示例#2
0
 /// <summary>
 /// 绑定供应商详细信息
 /// </summary>
 /// <param name="id"></param>
 void BindDetail(int id)
 {
     model         = bll.GetModel(id);
     txtPrice.Text = ((decimal)model.Price).ToString("0.00");
     //txtTemPrice.Text = ((decimal)model.Price).ToString("0.00");
     txtRemark.Text              = model.Remark;
     txtSortNum.Text             = model.SortNum.ToString();
     txtTitle.Text               = model.NameInfo;
     ckState.Checked             = model.StateInfo == 1 ? true : false;
     ddlTechnology.SelectedValue = model.ParentId.ToString();
 }
示例#3
0
        /// <summary>
        /// 绑定所属工艺
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        public string GetParentName(int pid)
        {
            if (string.Equals(pid, 0))
            {
                return("顶级工艺");
            }
            else
            {
                Model.Technology model = bll.GetModel(pid);

                if (model != null)
                {
                    return(model.NameInfo);
                }
                else
                {
                    return("未找到所属工艺");
                }
            }
        }