Beispiel #1
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        DoctorsOrder doctorsOrder = new DoctorsOrder();

        doctorsOrder.ClinicalFindings = txtClinicalFindings.Text;
        doctorsOrder.Orders           = txtOrder.Text;
        doctorsOrder.ResidentID       = Int32.Parse(Request.QueryString["ResidentID"]);
        doctorsOrder.OrderDate        = DateTime.Parse(txtOrderDate.Text);
        doctorsOrder.AddeBy           = getLogin().LoginID;
        doctorsOrder.AddedDate        = DateTime.Now;
        doctorsOrder.UpdatedBy        = getLogin().LoginID;
        doctorsOrder.UpdatedDate      = DateTime.Now;
        doctorsOrder.ExtraField1      = txtPhysician.Text;
        doctorsOrder.ExtraField2      = txtMRno.Text;
        doctorsOrder.ExtraField3      = getStaffNotified();
        doctorsOrder.ExtraField4      = "";
        doctorsOrder.ExtraField5      = "";
        if (ddlExistingRecord.SelectedIndex == 0)
        {
            int resutl = DoctorsOrderManager.InsertDoctorsOrder(doctorsOrder);
        }
        else
        {
            doctorsOrder.DoctorsOrderID = int.Parse(ddlExistingRecord.SelectedValue);
            DoctorsOrderManager.UpdateDoctorsOrder(doctorsOrder);
        }

        loadGrid();
    }
Beispiel #2
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        DoctorsOrder doctorsOrder = new DoctorsOrder();

        doctorsOrder.ClinicalFindings = txtClinicalFindings.Text;
        doctorsOrder.Orders           = txtOrders.Text;
        doctorsOrder.ResidentID       = Int32.Parse(ddlResident.SelectedValue);
        doctorsOrder.OrderDate        = txtOrderDate.Text;
        doctorsOrder.AddeBy           = Int32.Parse(txtAddeBy.Text);
        doctorsOrder.AddedDate        = DateTime.Now;
        doctorsOrder.UpdatedBy        = Int32.Parse(txtUpdatedBy.Text);
        doctorsOrder.UpdatedDate      = txtUpdatedDate.Text;
        doctorsOrder.ExtraField1      = txtExtraField1.Text;
        doctorsOrder.ExtraField2      = txtExtraField2.Text;
        doctorsOrder.ExtraField3      = txtExtraField3.Text;
        doctorsOrder.ExtraField4      = txtExtraField4.Text;
        doctorsOrder.ExtraField5      = txtExtraField5.Text;
        int resutl = DoctorsOrderManager.InsertDoctorsOrder(doctorsOrder);

        Response.Redirect("AdminDoctorsOrderDisplay.aspx");
    }