magicSuggest更新隐藏字段

时间:2018-11-14 15:11:10

标签: jquery magicsuggest

我需要对magicSuggest元素进行排序,我使用jQuery UI和sortable完成了

CREATE TABLE #PaySlip (PaySlipID int, SlipNo varchar(50), SlipDate date, EmployeeID int, RatePerHrs numeric(18,2));
CREATE TABLE #PaySlipD (PaySlipID int,HeadType varchar(50),OrderNo int, HeadName varchar(50), Tot_hrs numeric(18,2), Amount numeric(18,2));


INSERT INTO #PaySlip
    (PaySlipID,SlipNo,SlipDate ,EmployeeID,RatePerHrs)
    values
    (3, '2018-0001',    '2018-10-03',   30, 7.00),
    (4, '2018-0002',    '2018-10-03',   23, 8.00);

INSERT INTO #PaySlipD
    (PaySlipID,HeadType,OrderNo,HeadName,Tot_hrs,Amount)
    values
(   3   ,   'Earning'   ,   2   ,   'Normal Hours'  ,   82  ,   574 ),
(   3   ,   'Earning'   ,   2   ,   'OT Normal'     ,   13.57   ,   0   ),
(   3   ,   'Earning'   ,   3   ,   'OT Holiday'    ,   0   ,   0   ),
(   3   ,   'Earning'   ,   5   ,   'Incentive'     ,   0   ,   0   ),
(   3   ,   'Deduction' ,   1   ,   'Loan'          ,   0   ,   0   ),
(   3   ,   'Deduction' ,   2   ,   'Tax'           ,   0   ,   26.13   ),
(   3   ,   'Deduction' ,   3   ,   'Employee NPF'  ,   0   ,   34.44   ),
(   3   ,   'Deduction' ,   4   ,   'Employer NPF'  ,   0   ,   48.22   ),
(   4   ,   'Earning'   ,   1   ,   'Normal Hours'  ,   71.24   ,   498.68  ),
(   4   ,   'Earning'   ,   2   ,   'OT Normal'     ,   4.85    ,   0   ),
(   4   ,   'Earning'   ,   3   ,   'OT Holiday'    ,   0   ,   0   ),
(   4   ,   'Earning'   ,   5   ,   'Incentive'     ,   0   ,   0   ),
(   4   ,   'Deduction' ,   1   ,   'Loan'          ,   0   ,   0   ),
(   4   ,   'Deduction' ,   2   ,   'Tax'           ,   0   ,   15.25   ),
(   4   ,   'Deduction' ,   3   ,   'Employee NPF'  ,   0   ,   29.92   ),
(   4   ,   'Deduction' ,   4   ,   'Employer NPF'  ,   0   ,   41.89   )
drop table #PaySlip
drop table #PaySlipD

现在我需要触发隐藏字段的更新,但是我找不到方法

0 个答案:

没有答案