Exemple #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;
            }
        }
    }
Exemple #2
0
    /// <summary>
    /// 绑定数据
    /// </summary>
    public void Bind()
    {
        DataTable ht = new Hi.BLL.YZT_Library().getHtDrop(DisID.ToString());

        this.HtDrop.DataSource     = ht;
        this.HtDrop.DataTextField  = "hospital";
        this.HtDrop.DataValueField = "hospital";
        this.HtDrop.DataBind();

        string PaymentID = Request.QueryString["KeyID"];

        this.PaymentID.Value = PaymentID;
        if (!string.IsNullOrWhiteSpace(PaymentID))
        {
            Hi.Model.YZT_Payment paymentModel = new Hi.BLL.YZT_Payment().GetModel(Convert.ToInt32(PaymentID));
            if (paymentModel != null)
            {
                this.PaymentNO.Value      = paymentModel.PaymentNO;
                this.PaymentDate.Value    = paymentModel.PaymentDate.ToString("yyyy-MM-dd");
                this.IState.Value         = paymentModel.IState.ToString();
                this.PaymentAmount.Value  = paymentModel.PaymentAmount.ToString("#0.00");
                this.Remark.Value         = paymentModel.Remark.ToString();
                this.HtDrop.SelectedValue = paymentModel.hospital.ToString();
                this.HtDrop.Enabled       = false;
            }

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

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

        Pager.RecordCount = Counts;
        page = Pager.CurrentPageIndex.ToString();
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable ht = new Hi.BLL.YZT_Library().getHtDrop(DisID.ToString());
         this.HtDrop.DataSource     = ht;
         this.HtDrop.DataTextField  = "hospital";
         this.HtDrop.DataValueField = "hospital";
         this.HtDrop.DataBind();
         this.index.Value          = Request.QueryString["index"];
         this.hidhtId.Value        = Request["id"] + "";
         this.HtDrop.SelectedValue = Request["id"] + "";
         Bind();
     }
 }