FrmPrimaryAttendance.xml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Forms>
  3. <Form Name="FrmPrimaryAttendance">
  4. <Client>
  5. <Events>
  6. <Load>
  7. <![CDATA[
  8. @Title="原始考勤资料";
  9. GetSchema();
  10. ChangeMode("Search");
  11. ]]>
  12. </Load>
  13. <Closing>
  14. ;
  15. </Closing>
  16. <Closed>
  17. ;
  18. </Closed>
  19. </Events>
  20. <Mode>
  21. <Search>
  22. <Lable name="Search"/>
  23. </Search>
  24. </Mode>
  25. <Controls>
  26. <IKDateTimePicker name="dtStart">
  27. <Events>
  28. <CheckedChanged>
  29. dtEnd.Checked = dtStart.Checked;
  30. </CheckedChanged>
  31. <ValueChanged>
  32. dtEnd.CValue = dtStart.CValue;
  33. </ValueChanged>
  34. </Events>
  35. </IKDateTimePicker>
  36. <IKDateTimePicker name="dtEnd"/>
  37. <IKTextButton name="tbEmployee1" DataSource="UI.StartNo_Employee">
  38. <Events>
  39. <Click>
  40. <![CDATA[
  41. @temp = ShowSearchBox("EmployeeSearch","INFOMATION",tbEmployee1.CValue);
  42. if( @temp == "" )
  43. return;
  44. tbEmployee1.CValue = @temp;
  45. ]]>
  46. </Click>
  47. <TextBoxButtonTextChanged>
  48. tbEmployee2.CValue = tbEmployee1.CValue;
  49. </TextBoxButtonTextChanged>
  50. </Events>
  51. </IKTextButton>
  52. <IKTextButton name="tbEmployee2" DataSource="UI.EndNo_Employee" >
  53. <Events>
  54. <Click>
  55. <![CDATA[
  56. @temp = ShowSearchBox("EmployeeSearch","INFOMATION",tbEmployee2.CValue);
  57. if( @temp == "" )
  58. return;
  59. tbEmployee2.CValue = @temp;
  60. ]]>
  61. </Click>
  62. </Events>
  63. </IKTextButton>
  64. <IKButton name="btnSearch">
  65. <Events>
  66. <Click>
  67. Search("SearchAttendanceRecordList",tbEmployee1.CValue!=""?tbEmployee1.CValue:DBNull(),tbEmployee2.CValue!=""?tbEmployee2.CValue:DBNull(),dtStart.CValue,dtEnd.CValue);
  68. </Click>
  69. </Events>
  70. </IKButton>
  71. <IKButton name="btnSearch2">
  72. <Events>
  73. <Click>
  74. Search("SearchDiningRecordList",tbEmployee1.CValue!=""?tbEmployee1.CValue:DBNull(),tbEmployee2.CValue!=""?tbEmployee2.CValue:DBNull(),dtStart.CValue,dtEnd.CValue);
  75. </Click>
  76. </Events>
  77. </IKButton>
  78. <IKButton name="btnEmpty">
  79. <Events>
  80. <Click>
  81. tbEmployee1.CValue="";
  82. tbEmployee2.CValue="";
  83. Empty();
  84. </Click>
  85. </Events>
  86. </IKButton>
  87. <IKButton name ="btnPrint">
  88. <Events>
  89. <Click>
  90. PrintReport();
  91. </Click>
  92. </Events>
  93. </IKButton>
  94. <IKDataGridEx name="dgAttendanceRecordList" DataSource="AttendanceRecordList" TableStyleIndex="0">
  95. <DataColumn Index="0" DataSource="AttendanceRecordList.Name_Employee" />
  96. <DataColumn Index="1" DataSource="AttendanceRecordList.Date_AttendanceRecord" />
  97. </IKDataGridEx>
  98. <IKFormToolBar name="toolBar">
  99. <Events>
  100. <ClickFirst>
  101. ;
  102. </ClickFirst>
  103. <ClickPrev>
  104. ;
  105. </ClickPrev>
  106. <ClickNext>
  107. ;
  108. </ClickNext>
  109. <ClickLast>
  110. ;
  111. </ClickLast>
  112. <ClickNew>
  113. ;
  114. </ClickNew>
  115. <ClickEmpty>
  116. ;
  117. </ClickEmpty>
  118. <ClickSubmit>
  119. ;
  120. </ClickSubmit>
  121. <ClickModify>
  122. ;
  123. </ClickModify>
  124. <ClickDelete>
  125. ;
  126. </ClickDelete>
  127. <ClickPrint>
  128. ;
  129. </ClickPrint>
  130. <ClickAudit>
  131. ;
  132. </ClickAudit>
  133. <ClickUnAudit>
  134. ;
  135. </ClickUnAudit>
  136. <ClickImport>
  137. ;
  138. </ClickImport>
  139. <ClickExport>
  140. ;
  141. </ClickExport>
  142. <ClickClose>
  143. ;
  144. </ClickClose>
  145. <ClickExpand>
  146. ;
  147. </ClickExpand>
  148. </Events>
  149. </IKFormToolBar>
  150. </Controls>
  151. <ChildForms>
  152. <ChildForm name="EmployeeSearch" DataSource="Employee" SearchFunction="SearchAllEmployee" SearchFunctionByNo="" MappingName="员工" >
  153. <DataColumn Index="0" MappingName="#Employee.No_Employee" HeaderText="员工编号" Width="90" ColumnType="IKDataGridTextBoxColumn" />
  154. <DataColumn Index="1" MappingName="#Employee.Name_Employee" HeaderText="员工名称" Width="90" ColumnType="IKDataGridTextBoxColumn"/>
  155. </ChildForm>
  156. </ChildForms>
  157. </Client>
  158. <Server>
  159. <Tables>
  160. <Table name="AttendanceRecordList" Type="Child">
  161. <GetSchema CmdType="Text" CmdText=" SELECT Top 0 Employee.Name_Employee,AttendanceRecord.Date_AttendanceRecord
  162. FROM AttendanceRecord
  163. Join Employee On Employee.CardNo_Employee=AttendanceRecord.No_Card ">
  164. </GetSchema>
  165. </Table>
  166. </Tables>
  167. <Search>
  168. <SearchAllEmployee CmdType="Text" CmdText="SELECT Employee.No_Employee,Employee.Name_Employee FROM Employee ">
  169. <Tables>
  170. <Table name="AllEmployee" />
  171. </Tables>
  172. </SearchAllEmployee>
  173. <SearchAttendanceRecordList CmdType="Text" CmdText="
  174. SELECT Employee.Name_Employee,AttendanceRecord.Date_AttendanceRecord
  175. FROM AttendanceRecord
  176. Join Employee On Employee.CardNo_Employee=AttendanceRecord.No_Card
  177. Where No_Employee Between IsNull(@StartNo_Employee,No_Employee) And IsNull(@EndNo_Employee,No_Employee)
  178. AND Date_AttendanceRecord Between isnull(DateAdd(day,DateDiff(day,0,@StartDate),0),Date_AttendanceRecord) AND Isnull(DateAdd(day,DateDiff(day,0,@EndDate),1),Date_AttendanceRecord)
  179. Order By Date_AttendanceRecord,Name_Employee
  180. ">
  181. <Params>
  182. <Param name="@StartNo_Employee" type="Employee.No_Employee" index="0"/>
  183. <Param name="@EndNo_Employee" type="Employee.No_Employee" index="1"/>
  184. <Param name="@StartDate" type="SaleBill.Date_SaleBill" index="2"/>
  185. <Param name="@EndDate" type="SaleBill.Date_SaleBill" index="3"/>
  186. </Params>
  187. <Tables>
  188. <Table name="AttendanceRecordList" />
  189. </Tables>
  190. </SearchAttendanceRecordList>
  191. <SearchDiningRecordList CmdType="Text" CmdText="
  192. SELECT Employee.Name_Employee,Date_AttendanceRecord
  193. FROM DiningRecord
  194. Join Employee On Employee.CardNo_Employee=DiningRecord.No_Card
  195. Where No_Employee Between IsNull(@StartNo_Employee,No_Employee) And IsNull(@EndNo_Employee,No_Employee)
  196. AND Date_AttendanceRecord Between isnull(DateAdd(day,DateDiff(day,0,@StartDate),0),Date_AttendanceRecord) AND Isnull(DateAdd(day,DateDiff(day,0,@EndDate),1),Date_AttendanceRecord)
  197. Order By Date_AttendanceRecord,Name_Employee
  198. ">
  199. <Params>
  200. <Param name="@StartNo_Employee" type="Employee.No_Employee" index="0"/>
  201. <Param name="@EndNo_Employee" type="Employee.No_Employee" index="1"/>
  202. <Param name="@StartDate" type="SaleBill.Date_SaleBill" index="2"/>
  203. <Param name="@EndDate" type="SaleBill.Date_SaleBill" index="3"/>
  204. </Params>
  205. <Tables>
  206. <Table name="AttendanceRecordList" />
  207. </Tables>
  208. </SearchDiningRecordList>
  209. </Search>
  210. </Server>
  211. <Lables>
  212. <Search>
  213. ;
  214. </Search>
  215. </Lables>
  216. </Form>
  217. </Forms>