Beispiel #1
0
 protected void onSearch(object sender, EventArgs e)
 {
     PharmacistBiz biz = new PharmacistBiz();
     Data data = Param;
     data.add("doctorId", UserInfo.getId(Session));
     Data list = biz.list(Param.getString("searchField"), Param.getString("searchValue"), data);
     for (int i = 0; i < list.Count; i++)
     {
         list.add(i, "date", list.getString(i, "date").Substring(0, 10));
     }
     Patientlist.DataSource = list.Source;
     Patientlist.DataBind();
 }
Beispiel #2
0
    protected override void Fire(object sender, EventArgs e)
    {
        if (!UserInfo.isPharmacist(Session))
        {
            alertAndGoback("you are not a Pharmacist. Please login");
            return;
        }
        String hId = Param.getString("hId");
        Data data = new Data();
        data.add("doctorId", UserInfo.getId(Session));

        PharmacistBiz biz = new PharmacistBiz();

        if (!"".Equals(hId))
        {
            data.add("hId", hId);
            biz.done(data);
        }
        Data result = biz.list(Param.getString("searchField"), Param.getString("searchValue"), data);
        Patientlist.DataSource = result.Source;
        Patientlist.DataBind();
    }
Beispiel #3
0
    protected override void Fire(object sender, EventArgs e)
    {
        if (!UserInfo.isPharmacist(Session))
        {
            alertAndGoback("you are not a Pharmacist. Please login");
            return;
        }
        Data result = new Data();
        Data data = new Data();
        MedicineBiz bizz = new MedicineBiz();
        data.add("doctorId", UserInfo.getId(Session));
        data.add("historyId", Param.get("historyId"));
        historyId.Value = Param.getString("historyId");
        String rId = Param.getString("rId");
        if (!"".Equals(rId))
        {
            data.add("medicineId", rId);
            bizz.delete(data);
        }
        PharmacistBiz biz = new PharmacistBiz();
        result = biz.view(data);
        userNameLabel.Text = result.getString("UserSurName") + "," + result.getString("UserFirstName") + ",ID:" + result.getString("UserID");
        Usermed.Text = result.getString("UserOD");
        Memo.Text = result.getString("Memo");
        UserID.Text = result.getString("UserID");
        OrderID.Text = result.getString("historyId");

        Data itemReslt = bizz.getItems("", data);
        Data medicineResult = bizz.view(data);

        MedicineDroplist.DataSource = itemReslt.Source;
        MedicineDroplist.DataBind();

        Medicinelist.DataSource = medicineResult.Source;
        Medicinelist.DataBind();
    }