Ejemplo n.º 1
0
    /// <summary>
    /// 绑定数据
    /// </summary>
    public void Bind()
    {
        string LibraryID = Request.QueryString["KeyID"];

        this.LibraryID.Value = LibraryID;
        if (!string.IsNullOrWhiteSpace(LibraryID))
        {
            Hi.Model.YZT_Library libraryModel = new Hi.BLL.YZT_Library().GetModel(Convert.ToInt32(LibraryID));
            if (libraryModel != null)
            {
                this.LibraryNO.Value   = libraryModel.LibraryNO;
                this.LibraryDate.Value = libraryModel.LibraryDate.ToString("yyyy-MM-dd");
                this.Salesman.Value    = libraryModel.Salesman;
                this.PaymentDays.Value = libraryModel.PaymentDays.ToString();
                this.MoneyDate.Value   = libraryModel.MoneyDate.ToString("yyyy-MM-dd");
                this.OrderNote.Value   = libraryModel.Remark;
                this.HtDrop.Value      = libraryModel.hospital.ToString();
            }

            List <Hi.Model.YZT_LibraryDetail> libraryDetailList = new Hi.BLL.YZT_LibraryDetail().GetList("", " dr=0 and LibraryID=" + LibraryID + "", "");
            Rep_StorageDetail.DataSource = libraryDetailList;
            Rep_StorageDetail.DataBind();
            if (libraryDetailList.Count > 0)
            {
                oneTR.Visible = false;
            }
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 绑定销售订单信息列表
    /// </summary>
    public void Bind()
    {
        int       pageCount = 0;
        int       Counts    = 0;
        string    strwhere  = Where();
        DataTable dt        = new Hi.BLL.YZT_LibraryDetail().getDataTable(Pager.PageSize, Pager.CurrentPageIndex, strwhere, out pageCount, out Counts, Pager.RecordCount);

        this.rptOrder.DataSource = dt;
        this.rptOrder.DataBind();

        Pager.RecordCount = Counts;
        page = Pager.CurrentPageIndex.ToString();
    }
Ejemplo n.º 3
0
    public string disBings(string OrderOutDetailID = "", string inindex = "")
    {
        string strwhere = "  DisID=" + DisID + " ";

        if (!Util.IsEmpty(OrderOutDetailID))
        {
            strwhere += " and id in(" + OrderOutDetailID + ")";
        }
        if (inindex == "-1")
        {
            List <Hi.Model.YZT_LibraryDetail> DetailList1 = new Hi.BLL.YZT_LibraryDetail().GetList("", strwhere, "");
            DataTable dt2 = Common.FillDataTable(DetailList1);
            return(ConvertJson.ToJson(dt2));
        }
        List <Hi.Model.YZT_GoodsStock> DetailList2 = new Hi.BLL.YZT_GoodsStock().GetList("", strwhere, "");
        DataTable dt = Common.FillDataTable(DetailList2);

        return(ConvertJson.ToJson(dt));
    }