Exemplo n.º 1
0
        void view_OnSelect(object sender, Views.Web.QueryPatientArgs e)
        {
            DataTable recordData = Model.QueryPatient(e.Patient);
            DataTable applyData  = Model.GetApply(e.UserData.Rows[0]["USER_ID"].ToString());

            if (recordData != null && applyData == null)
            {
                DataColumn dc  = new DataColumn("FLAG", typeof(String));
                DataColumn dc1 = new DataColumn("ENABLE", typeof(Boolean));
                recordData.Columns.Add(dc);
                recordData.Columns.Add(dc1);
                foreach (DataRow dr in recordData.Rows)
                {
                    dr["ENABLE"] = true;
                    dr["FLAG"]   = "";
                }
                View.ExeBindSelectRecord(recordData);
            }
            else if (recordData != null && applyData != null)
            {
                View.ExeBindSelectRecord(isApply(recordData, applyData));
            }
            else
            {
                View.ExeBindSelectRecord(null);
            }
        }
Exemplo n.º 2
0
        void view_OnProviceChanged(object sender, Views.Web.QueryPatientArgs e)
        {
            DataTable data = Model.QueryCity(e.ProviceID);

            View.ExeBindCity(data);
        }
Exemplo n.º 3
0
        void view_OnDeptChanged(object sender, Views.Web.QueryPatientArgs e)
        {
            DataTable data = Model.QueryDoctor(e.DeptID);

            View.ExeBIndDoctor(data, e.i);
        }