protected void Page_Load(object sender, EventArgs e)
    {
        TeModel       tm  = new TeModel();
        SqlDataReader sdr = tm.findTisaneAll();



        if (sdr != null)
        {
            while (sdr.Read())
            {
                this.tisanenum.Items.Add(new ListItem(sdr["machinename"].ToString(), sdr["id"].ToString()));
            }
        }



        //teid.Text = "nihao";
        // testatus1.Text = "空闲";
        // teroomid.Text = "1号机房";
        // testatus2.Text ="良好";
        int a = Convert.ToInt32(tisanenum.Value);

        SqlDataReader sdr1 = tm.findTisaneAllbyId(a);

        if (sdr1.Read())
        {
            // teid.Text = sdr1["tisaneunitid"].ToString();
        }
        else
        {
            tehealthstatus.Text = "无";
            teroomid.Text       = "无";
            texiaodustatus.Text = "无";
            status.Text         = "无";
            usingstatus.Text    = "无";
        }



        if (Request.QueryString["id"] != null)
        {
            int id = Convert.ToInt16(Request.QueryString["id"]);
            idnum.Value = Request.QueryString["id"].ToString();
        }


        Bubbleinfo    bi        = new Bubbleinfo();
        string        machineid = bi.distributionmachine();
        SqlDataReader sdr2      = tm.findmachinenamebyid(Convert.ToInt32(machineid));

        if (sdr2.Read())
        {
            recommend.Text = sdr2["machinename"].ToString();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        TeModel       tm  = new TeModel();
        SqlDataReader sdr = tm.findTisaneAll();



        if (sdr != null)
        {
            while (sdr.Read())
            {
                this.tisanenum.Items.Add(new ListItem(sdr["machinename"].ToString(), sdr["id"].ToString()));
            }
        }



        this.FlexGrid2.InitConfig(
            new string[] {
            "title=煎药机工作量统计",       //标题
            "striped=true",         //是否显示行交替色
            "selectedonclick=true", //是否点击行自动选中checkbox
            "usepager=false",       //使用分页器
            "showcheckbox=true",    //显示复选框
            "height=300",           //高度,可为auto或具体px值
            "width=814"             //宽度,可为auto或具体px值
        },


            new dotNetFlexGrid.FieldConfig[] {
            new dotNetFlexGrid.FieldConfig("hao", "煎药机号", 183, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workdate", "日期", 190, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workcontent", "工作内容", 190, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workload", "工作量", 190, false, dotNetFlexGrid.FieldConfigAlign.Center),
        },
            null
            ,
            null
            );
        this.FlexGrid2.DataHandler = new dotNetFlexGrid.DataHandlerDelegate(DotNetFlexGrid2DataHandler);


        TeModel tml = new TeModel();

        DataTable dt = tml.findtisanemachineInfo(0, "0", "0");

        this.chartData.Value = DataTableToJson.ToJson(dt);
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        TeModel       tm  = new TeModel();
        SqlDataReader sdr = tm.findTisaneAll();



        this.FlexGrid1.InitConfig(
            new string[] {
            "title=员工工作量统计",        //标题
            "striped=true",         //是否显示行交替色
            "selectedonclick=true", //是否点击行自动选中checkbox
            "usepager=false",       //使用分页器
            "showcheckbox=true",    //显示复选框
            "height=300",           //高度,可为auto或具体px值
            "width=814"             //宽度,可为auto或具体px值
        },
            // 序号、委托单号、医院编号、医院名称、处方号、煎药方式、姓名、性别、年龄、电话、地址、科室、病区号、
            //病房号、病床号、诊断结果、剂数、服用方式、次数、包装量、服用方法、煎药方案、一煎时间、二煎时间、
            //浸泡加水量、浸泡时间、标签数量、备注信息、医生、医生脚注、取药时间、取药序号、下单时间、当前状态、
            //操作时间、操作人员、配送公司、配送地址、联系电话、快件类型

            new dotNetFlexGrid.FieldConfig[] {
            new dotNetFlexGrid.FieldConfig("workman", "员工姓名", 90, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workmannum", "员工工号", 170, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workdate", "日期", 90, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workcontent", "工作内容", 170, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("workload", "工作量", 120, false, dotNetFlexGrid.FieldConfigAlign.Center),
        },
            null
            ,
            null
            );
        this.FlexGrid1.DataHandler = new dotNetFlexGrid.DataHandlerDelegate(DotNetFlexGrid1DataHandler);
        TeModel   tml = new TeModel();
        DataTable dt  = tml.EmployeeInfoCountAll("0", "0", "0", "0", "0");

        this.chartData.Value = DataTableToJson.ToJson(dt);
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        TeModel       tm  = new TeModel();
        SqlDataReader sdr = tm.findTisaneAll();



        if (sdr != null)
        {
            while (sdr.Read())
            {
                this.tisanenum.Items.Add(new ListItem(sdr["machinename"].ToString(), sdr["id"].ToString()));
            }
        }



        this.FlexGridRecipe.InitConfig(
            new string[] {
            "title=处方信息",           //标题
            "striped=true",         //是否显示行交替色
            "selectedonclick=true", //是否点击行自动选中checkbox
            "usepager=false",       //使用分页器
            "showcheckbox=true",    //显示复选框
            "height=300",           //高度,可为auto或具体px值
            "width=1000"            //宽度,可为auto或具体px值
        },
            new dotNetFlexGrid.FieldConfig[] {
            new dotNetFlexGrid.FieldConfig("ID", "煎药单号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            // new dotNetFlexGrid.FieldConfig("tisaneman","煎药人员",60,true,dotNetFlexGrid.FieldConfigAlign.Center),
            //new dotNetFlexGrid.FieldConfig("tisanestatus","煎药状态",60,true,dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("starttime", "开始时间", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("endDate", "完成时间", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("machineid", "煎药机号", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("hnum", "医院编号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("hname", "医院名称", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("delnum", "委托单号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("Pspnum", "处方号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("name", "患者姓名", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("sex", "性别", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("age", "年龄", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("phone", "手机号码", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("address", "地址", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("department", "科室", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("inpatientarea", "病区号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("ward", "病房号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("sickbed", "病床号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("diagresult", "诊断结果", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("takemethod", "服用方式", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("takenum", "次数", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("decscheme", "煎药方案", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("packagenum", "包装量", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("oncetime", "煎药时间一", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("twicetime", "煎药时间二", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("soakwater", "加水量", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("waterYield", "实际加水量", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("labelnum", "标签数量", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("remark", "说明", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("doctor", "医生", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("footnote", "煎医生脚", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("getdrugtime", "取药时间", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("getdrugnum", "取药号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("ordertime", "订单时间", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("tisanestatus", "当前状态", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            //new dotNetFlexGrid.FieldConfig("dotime","处理时间",60,true,dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("tisaneman", "操作人员", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),

            new dotNetFlexGrid.FieldConfig("dtbcompany", "配送公司", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("dtbaddress", "配送地址", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("dtbphone", "快递电话", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("dtbtype", "配送类型", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("RemarksA", "备注A", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("RemarksB", "备注B", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
        },
            null
            ,
            null
            );
        this.FlexGridRecipe.DataHandler = new dotNetFlexGrid.DataHandlerDelegate(FlexGridRecipeDataHandler);  //提供数据的方法


        this.FlexGridDrug.InitConfig(
            new string[] {
            "title=煎药信息",           //标题
            "striped=true",         //是否显示行交替色
            "selectedonclick=true", //是否点击行自动选中checkbox
            "usepager=false",       //使用分页器
            "showcheckbox=true",    //显示复选框
            "height=300",           //高度,可为auto或具体px值
            "width=1000"            //宽度,可为auto或具体px值
        },
            new dotNetFlexGrid.FieldConfig[] {
            new dotNetFlexGrid.FieldConfig("pid", "煎药单号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("ps", "处方号", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("tisaneman", "煎药人员", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("tisanestatus", "煎药状态", 60, true, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("starttime", "开始时间", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),
            new dotNetFlexGrid.FieldConfig("machineid", "煎药机号", 60, false, dotNetFlexGrid.FieldConfigAlign.Center),
            // new dotNetFlexGrid.FieldConfig("tisanemethod","煎药方案",60,false,dotNetFlexGrid.FieldConfigAlign.Center),
        },
            null
            ,
            null
            );
        this.FlexGridDrug.DataHandler = new dotNetFlexGrid.DataHandlerDelegate(FlexGridDrugDataHandler);  //提供数据的方法
    }