Пример #1
0
        /// <summary>
        /// 添加
        /// </summary>
        private bool add()
        {
            bool Flag = false;

            //bool flag =validating();
            //if (flag)
            //    return false;
            if (!isEnd())
            {
                // txtRecord_Content.ReadOnly = false;

                /*
                 *保存会诊记录信息
                 */
                string Sql_Save_Record = "update t_consultaion_record set write_r_id=" + App.UserAccount.UserInfo.User_id + "," +
                                         "write_r_name='" + App.UserAccount.UserInfo.User_name + "'," +
                                         "consul_time=sysdate,consul_record_submite_state=1,state=1" +
                                         " where id=" + Id + "";
                int count = App.ExecuteSQL(Sql_Save_Record);
                if (count > 0)
                {
                    //设置文书内容
                    SetDoc();

                    string SName = App.GetSystemTime().ToString() + "," + App.UserAccount.CurrentSelectRole.Section_Id + "," +
                                   App.UserAccount.CurrentSelectRole.Section_name + "," + flgGrid[flgGrid.RowSel, "会诊记录序号"].ToString();
                    //text.setNewDoc(inPatient.PId, 133, 0, 0, SName, 0, inPatient.Patient_Name, inPatient.PId, inPatient.Sick_Bed_Name, inPatient.Section_Name, "会诊记录", true);
                    text.setNewDoc(821, 0, 0, "会诊单", 0, inPatient, true);
                    text.MyDoc.Us.Tid        = 0;                                                                                         //0增加 文书id 修改
                    text.MyDoc.Us.IsMore     = true;
                    text.MyDoc.Us.RecordText = App.UserAccount.CurrentSelectRole.Section_name + " " + App.UserAccount.UserInfo.User_name; //节点名称
                    text.MyDoc.Us.RecordTime = string.Format("{0:g}", App.GetSystemTime());                                               //记录时间



                    Flag = true;
                    App.Msg("会诊记录信息已经填写成功!");
                }
                else
                {
                    App.Msg("会诊记录操作失败!");
                }
            }
            return(Flag);
        }
Пример #2
0
        private void trvBook_AfterSelect(object sender, TreeViewEventArgs e)
        {
            text.MyDoc.ClearContent();
            text.setNewDoc(Convert.ToInt32(trvBook.SelectedNode.Name), 0, 0, "", 0, inPatient, false);
            //text.setNewDoc(Pid,Convert.ToInt32(trvBook.SelectedNode.Name), 0, 0, "", 0, "", Pid,
            //               "", "", "住院病程", false);
            text.MyDoc.Us.Tid        = 1;                                                                                         //0增加 文书id 修改
            text.MyDoc.Us.RecordText = App.UserAccount.CurrentSelectRole.Section_name + " " + App.UserAccount.UserInfo.User_name; //节点名称
            text.MyDoc.Us.RecordTime = string.Format("{0:g}", App.GetSystemTime());                                               //记录时间
            string xmlDoc = GetXml();

            if (xmlDoc != null)
            {
                XmlDocument tempXml = new XmlDocument();
                tempXml.LoadXml(xmlDoc);
                text.MyDoc.FromXML(tempXml.DocumentElement);
                text.MyDoc.ContentChanged();
                text.Enabled = false;
            }
        }