Exemplo n.º 1
0
        void InitData()
        {
            var l = new BLL.BChanPin().GetChanPins(intPageSize, intPageIndex, ref intRecordCount, this.GetChaXun());

            if (l != null && l.Count > 0)
            {
                rpt.DataSource = l;
                rpt.DataBind();
            }
        }
Exemplo n.º 2
0
        void InitData()
        {
            var l = new BLL.BChanPin().GetChanPins(pageSize, pageIndex, ref recordCount, this.GetChaXun());

            if (l != null && l.Count > 0)
            {
                rpt.DataSource = l;
                rpt.DataBind();
                ph.Visible = false;
            }
        }
Exemplo n.º 3
0
        void Save()
        {
            var b = new BLL.BChanPin();
            var r = string.IsNullOrEmpty(ChanPinId) ? b.ChanPin_C(this.GetForm()) : b.ChanPin_U(this.GetForm());

            switch (r)
            {
            default:
                Utils.RCWE_AJAX("0", "保存失败");
                break;

            case 1:
                Utils.RCWE_AJAX("1", "保存成功");
                break;
            }
        }
Exemplo n.º 4
0
        void Save()
        {
            var b = new BLL.BChanPin();
            var r = b.ChanPinJiaGe_C(this.GetForm());

            switch (r)
            {
            default:
                Utils.RCWE_AJAX("0", "保存失败");
                break;

            case 1:
                Utils.RCWE_AJAX("1", "保存成功");
                break;

            case -99:
                Utils.RCWE_AJAX("0", "该产品不存在");
                break;
            }
        }
Exemplo n.º 5
0
        void InitData()
        {
            var m = new BLL.BChanPin().GetInfo(ChanPinId);

            if (m != null)
            {
                GongSiId     = m.GysId;
                BianMa.Value = m.BianMa;
                Name.Value   = m.Name;
                PinPai.Value = m.PinPai;
                GuiGe.Value  = m.GuiGe;
                JiaGe1.Value = m.JiaGe1.ToString("F2");
                if (m.JiaGe1 == 0)
                {
                    JiaGe1.Value = string.Empty;
                }
                DanWei.Value  = m.JiLiangDanWei;
                JieShao.Value = m.JieShao;
                if (m.FuJians != null && m.FuJians.Count > 0)
                {
                    IList <uploadfile.MFileInfo> f = m.FuJians.Select(mFuJianInfo => new uploadfile.MFileInfo()
                    {
                        Filepath = mFuJianInfo.Filepath
                    }).ToList();
                    ChanPinTuPian.YuanFiles = f;
                }
                FaBuRen.Value  = m.CaoZuoRenName;
                FaBuTime.Value = m.IssueTime.ToString();

                txt_gongsi_id.Value   = m.GysId;
                txt_gongsi_name.Value = m.GysName;
            }
            else
            {
                FaBuRen.Value  = YongHuInfo.Name;
                FaBuTime.Value = DateTime.Now.ToString();
            }
        }