コード例 #1
0
    //public void Clear()
    //{
    //    OrderID = 0;

    //    imgOrder.ImageUrl = "none";

    //    txtDate.Text = "";
    //    txtNote.Text = "";
    //    txtDept.Text = "";
    //    txtRoom.Text = "";
    //    txtBed.Text = "";
    //    txtDiagnosis.Text = "";
    //    txtPatientCode.Text = "";
    //    txtTransfusionNote.Text = "";
    //    People1.PeopleID = Guid.Empty;

    //    GridViewPack.DataBind();

    //    CurrentDIN = "";
    //    imgCurrentDIN.ImageUrl = "none";
    //}

    public void LoadOrder()
    {
        Order e = new Order();

        if (OrderID == 0)
        {
            imgOrder.ImageUrl = "none";
            People1.PeopleID  = Guid.Empty;
        }
        else
        {
            e = OrderBLL.Get(OrderID);

            if (e.Type == Order.TypeX.ForOrg)
            {
                Response.Redirect(RedBloodSystem.Url4Order4Org + "key=" + e.ID.ToString());
            }
            else if (e.Type == Order.TypeX.ForCR)
            {
                imgOrder.ImageUrl = BarcodeBLL.Url4Order(e.ID);
                People1.PeopleID  = e.People != null?e.PeopleID.GetValueOrDefault() : Guid.Empty;
            }
        }

        txtNote.Text = e.Note;

        if (e.Date != null)
        {
            txtDate.Text = e.Date.ToStringVN_Hour();
        }
        else
        {
            txtDate.Text = "";
        }

        txtDept.Text            = e.FullDepartment;
        txtRoom.Text            = e.Room;
        txtBed.Text             = e.Bed;
        txtDiagnosis.Text       = e.Diagnosis;
        txtPatientCode.Text     = e.PatientCode;
        txtTransfusionNote.Text = e.TransfusionNote;

        GridViewPack.DataBind();

        btnUpdate.Enabled = e.Status == Order.StatusX.Init;

        CurrentDIN             = "";
        imgCurrentDIN.ImageUrl = "none";

        GridViewSum.DataBind();
    }
コード例 #2
0
    public void LoadOrder()
    {
        Order e = new Order();

        if (OrderID == 0)
        {
            imgOrder.ImageUrl = "none";
            txtOrg.Text       = "";
            //People1.PeopleID = Guid.Empty;
        }
        else
        {
            e = OrderBLL.Get(OrderID);

            if (e.Type == Order.TypeX.ForOrg)
            {
                imgOrder.ImageUrl = BarcodeBLL.Url4Order(e.ID);
                txtOrg.Text       = e.Org != null ? e.Org.Name : "";
            }
            else if (e.Type == Order.TypeX.ForCR)
            {
                Response.Redirect(RedBloodSystem.Url4Order4CR + "key=" + e.ID.ToString());
            }
        }

        txtNote.Text = e.Note;

        if (e.Date != null)
        {
            txtDate.Text = e.Date.ToStringVN_Hour();
        }

        txtTransfusionNote.Text = e.TransfusionNote;

        GridViewPack.DataBind();

        btnUpdate.Enabled = e.Status == Order.StatusX.Init;

        urlPrint.NavigateUrl = ResolveClientUrl(string.Format("~/Store/PrintOrder.aspx?OrderID={0}", e.ID));

        CurrentDIN             = "";
        imgCurrentDIN.ImageUrl = "none";

        GridViewSum.DataBind();
    }
コード例 #3
0
    public void LoadOrder()
    {
        if (order != null)
        {
            imgOrder.ImageUrl = BarcodeBLL.Url4Order(order.ID);
            txtOrg.Text       = order.Org != null ? order.Org.Name : "";
            lblOrgFooter.Text = txtOrg.Text;
            lblActor.Text     = order.Actor;
            txtNote.Text      = order.Note;

            if (order.Date != null)
            {
                txtDate.Text = order.Date.ToStringVN_Hour();
            }

            txtTransfusionNote.Text = order.TransfusionNote;
        }
    }