@Title="薪资设定"; GetSchema(); if(Search("SearchPaySetting")) ChangeMode("View"); else ChangeMode("New"); ; ChangeMode("Search"); ChangeMode("Modify");
Empty(); NewInstance(); #PaySetting.ThreeFundBase_PaySetting = 0; #PaySetting.ProvideInsure_PaySetting = 0; #PaySetting.IdlenessInsure_PaySetting = 0; #PaySetting.MedicalInsure_PaySetting = 0; #PaySetting.AccFundAdjust_PaySetting = 0; #PaySetting.HouseAccFund_PaySetting = 0; #PaySetting.TaxBeginCH_PaySetting = 0; #PaySetting.TaxBeginF_PaySetting = 0; ikTextBox1.ReadOnly = true; ikTextBox2.ReadOnly = true; ikTextBox3.ReadOnly = true; ikTextBox4.ReadOnly = true; ikTextBox5.ReadOnly = true; ikTextBox6.ReadOnly = true; ikTextBox7.ReadOnly = true; ikTextBox8.ReadOnly = true; ikDataGridEx1.ReadOnly = true; ikDataGridEx2.ReadOnly = true; ikDataGridEx3.ReadOnly = true; dgCalendarList.ReadOnly = true; toolBar.EnableSubmit=false; toolBar.EnableModify=false; UpdateForm(true, ""); Empty(); NewInstance(); ikTextBox1.ReadOnly = false; ikTextBox2.ReadOnly = false; ikTextBox3.ReadOnly = false; ikTextBox4.ReadOnly = false; ikTextBox5.ReadOnly = false; ikTextBox6.ReadOnly = false; ikTextBox7.ReadOnly = false; ikTextBox8.ReadOnly = false; ikDataGridEx1.ReadOnly = false; ikDataGridEx2.ReadOnly = false; ikDataGridEx3.ReadOnly = false; dgCalendarList.ReadOnly = false; toolBar.EnableSubmit=GetRight(@Title,"新增"); toolBar.EnableModify=false; #PaySetting.ID_PaySetting = NewGuid(); #PaySetting.ThreeFundBase_PaySetting = 1725.00; #PaySetting.ProvideInsure_PaySetting = 8.00; #PaySetting.IdlenessInsure_PaySetting = 1.00; #PaySetting.MedicalInsure_PaySetting = 2.00; #PaySetting.AccFundAdjust_PaySetting = -200.00; #PaySetting.HouseAccFund_PaySetting = 7.00; #PaySetting.TaxBeginCH_PaySetting = 2000.00; #PaySetting.TaxBeginF_PaySetting = 4000.00; UpdateForm(true, ""); @Status=1; ikTextBox1.ReadOnly = true; ikTextBox2.ReadOnly = true; ikTextBox3.ReadOnly = true; ikTextBox4.ReadOnly = true; ikTextBox5.ReadOnly = true; ikTextBox6.ReadOnly = true; ikTextBox7.ReadOnly = true; ikTextBox8.ReadOnly = true; ikDataGridEx1.ReadOnly = true; ikDataGridEx2.ReadOnly = true; ikDataGridEx3.ReadOnly = true; dgCalendarList.ReadOnly = true; toolBar.EnableSubmit=false; toolBar.EnableModify=GetRight(@Title,"修改"); UpdateForm(true, ""); @Status=2; ikTextBox1.ReadOnly = false; ikTextBox2.ReadOnly = false; ikTextBox3.ReadOnly = false; ikTextBox4.ReadOnly = false; ikTextBox5.ReadOnly = false; ikTextBox6.ReadOnly = false; ikTextBox7.ReadOnly = false; ikTextBox8.ReadOnly = false; ikDataGridEx1.ReadOnly = false; ikDataGridEx2.ReadOnly = false; ikDataGridEx3.ReadOnly = false; dgCalendarList.ReadOnly = false; toolBar.EnableSubmit=GetRight(@Title,"新增"); toolBar.EnableModify=false; UpdateForm(true, ""); @Status=3;