/// <summary>
        /// 新增用法
        /// </summary>
        public void SaveUsageItem()
        {
            try
            {
                UsageItem item = new UsageItem( );
                item.Name            = formView.UsageName;
                item.Unit            = formView.UsageUnit;
                item.Py_Code         = formView.UsagePyCode;
                item.Wb_Code         = formView.UsageWbCode;
                item.PrintLongOrder  = formView.PrintLong;
                item.PrintTempOrder  = formView.PrintTemp;
                item.DeleteBit       = formView.DeleteBit;
                item.AssociatedItems = formView.AssociatedItems;

                ServiceItemController controller = new ServiceItemController( );
                if (controller.ItemNameExists(item))
                {
                    throw new Exception("用法名称【" + item.Name + "】已经存在");
                }

                controller.AddUsageItem(item);
                tbUsagediction = BaseDataReader.GetUsageDictionList( );
            }
            catch (Exception err)
            {
                throw err;
            }
        }
        /// <summary>
        /// 更新用法
        /// </summary>
        public void UpdateUsageItem()
        {
            try
            {
                UsageItem item = new UsageItem( );
                item.ID              = formView.CurrentSelectedUsageID;
                item.Name            = formView.UsageName;
                item.Unit            = formView.UsageUnit;
                item.Py_Code         = formView.UsagePyCode;
                item.Wb_Code         = formView.UsageWbCode;
                item.PrintLongOrder  = formView.PrintLong;
                item.PrintTempOrder  = formView.PrintTemp;
                item.DeleteBit       = formView.DeleteBit;
                item.AssociatedItems = formView.AssociatedItems;

                ServiceItemController controller = new ServiceItemController( );
                if (controller.ItemNameExists(item))
                {
                    throw new Exception("用法名称【" + item.Name + "】已经存在");
                }
                controller.UpdateUsageItem(item);
                DataRow[] drs = BaseDataReader.GetUsageDictionList( ).Select("ID=" + formView.CurrentSelectedUsageID);
                if (drs.Length > 0)
                {
                    DataRow[] drs2 = tbUsagediction.Select("ID=" + formView.CurrentSelectedUsageID);
                    if (drs2.Length > 0)
                    {
                        drs2[0].ItemArray = drs[0].ItemArray;
                    }
                }
                tbUsageFee = BaseDataReader.GetUsageFee( );
            }
            catch (Exception err)
            {
                throw err;
            }
        }