Example #1
0
        void view_OnSelectRecord(object sender, Views.Web.ApplyEventArgs e)
        {
            DataTable applyData  = Model.GetApply(e.UserData.Rows[0]["USER_ID"].ToString());
            DataTable recordData = Model.GetRecordByPatientInfo(e.PatientName);

            if (applyData != null && recordData != null)
            {
                View.ExeBindRecord(isApply(recordData, applyData));
            }
            else if (recordData != null && applyData == null)
            {
                DataColumn dc = new DataColumn("FLAG", typeof(String));
                recordData.Columns.Add(dc);
                foreach (DataRow dr in recordData.Rows)
                {
                    dr["FLAG"] = "提交申请";
                }
                View.ExeBindRecord(recordData);
            }
        }
Example #2
0
 void view_OnApply(object sender, Views.Web.ApplyEventArgs e)
 {
     Model.AddApplyInfo(e.RecordNO, e.UserData.Rows[0]["USER_ID"].ToString(), e.UserData.Rows[0]["USER_NAME"].ToString());
 }