Пример #1
0
 /// <summary>
 /// 增加
 /// </summary>
 /// <param name="tempMedTechItem">医技预约项目</param>
 public void Add(Neusoft.HISFC.Models.Terminal.MedTechItem tempMedTechItem)
 {
     try
     {
         //{5A111831-190D-4187-8076-83E220BC97B2}
         this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);
         this.fpSpread1_Sheet1.ActiveRowIndex = this.fpSpread1_Sheet1.RowCount - 1;
         int row = this.fpSpread1_Sheet1.ActiveRowIndex;
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.ItemCode, tempMedTechItem.Item.ID, false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.ItemName, tempMedTechItem.Item.Name, false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.UnitFlag, this.GetUnitNameById(tempMedTechItem.ItemExtend.UnitFlag), false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.BookLmt, 0, false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.SpecialBookLmt, 0, false);
         this.fpSpread1_Sheet1.SetValue(row, ( int )cols.TmpFlag, "1", false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.StartTime, "00:00:00", false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.EndTime, "00:00:00", false);
         this.fpSpread1_Sheet1.SetValue(row, (int)cols.Machine, "", false);
         this.fpSpread1.Focus();
         this.fpSpread1_Sheet1.SetActiveCell(this.fpSpread1_Sheet1.ActiveRowIndex, (int)cols.Noon, false);
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message, "提示信息");
         return;
     }
 }
Пример #2
0
        /// <summary>
        /// 更新医技预约项目
        /// </summary>
        /// <param name="medTechItem">医技预约项目</param>
        /// <returns>-1-失败;影响的行数</returns>
        public int UpdateMedTechItem(Neusoft.HISFC.Models.Terminal.MedTechItem medTechItem)
        {
            this.SetDB(serviceTerminal);

            return(serviceTerminal.UpdateMedTechItem(medTechItem));
        }