ServiceBase.cs 217 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514
  1. using System;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data.SqlClient;
  5. using System.Data;
  6. using Models;
  7. namespace DAL
  8. {
  9. /// <summary>
  10. /// 泛型公共数据读取类
  11. /// </summary>
  12. /// <typeparam name="T"></typeparam>
  13. public static class ServiceBase<T> where T : new()
  14. {
  15. /// <summary>
  16. /// 静态读取方法
  17. /// </summary>
  18. /// <param name="t">对象</param>
  19. /// <param name="type">对象区分</param>
  20. /// <param name="sql">sql语句</param>
  21. /// <param name="cmdType">文本类型</param>
  22. /// <param name="param">可变参数数组</param>
  23. /// <returns>返回集合</returns>
  24. public static List<T> excuteSql(T t, string type, string sql, CommandType cmdType, params SqlParameter[] param)
  25. {
  26. List<T> tList = null;
  27. using (SqlDataReader dr = SqlHelper.ExcuteReader(sql, cmdType, param))
  28. {
  29. if (dr != null)
  30. {
  31. tList = new List<T>();
  32. while (dr.Read())
  33. {
  34. t = new T();
  35. switch (type)
  36. {
  37. case "SystemMenu":
  38. (t as SystemMenu).Id = Convert.ToInt32(dr["Id"]);
  39. (t as SystemMenu).Name = dr["Name"].ToString();
  40. (t as SystemMenu).ShowName = dr["ShowName"].ToString();
  41. (t as SystemMenu).PageName = dr["PageName"].ToString();
  42. (t as SystemMenu).Mnid = Convert.ToInt32(dr["Mnid"]);
  43. (t as SystemMenu).Ico = dr["Ico"].ToString();
  44. (t as SystemMenu).Width = Convert.ToInt32(dr["Width"]);
  45. (t as SystemMenu).Height = Convert.ToInt32(dr["Height"]);
  46. (t as SystemMenu).IsEnable = Convert.ToInt32(dr["IsEnable"]);
  47. (t as SystemMenu).Mid = Convert.ToInt32(dr["Mid"]);
  48. (t as SystemMenu).IsDel = Convert.ToInt32(dr["IsDel"]);
  49. (t as SystemMenu).IsShow = Convert.ToInt32(dr["IsShow"]);
  50. break;
  51. case "SystemFunction":
  52. (t as SystemFunction).Id = Convert.ToInt32(dr["Id"]);
  53. (t as SystemFunction).Name = dr["Name"].ToString();
  54. (t as SystemFunction).Code = dr["Code"].ToString();
  55. (t as SystemFunction).Remark = dr["Remark"].ToString();
  56. (t as SystemFunction).IsEnable = Convert.ToInt32(dr["IsEnable"]);
  57. break;
  58. case "Competence":
  59. (t as Competence).Id = Convert.ToInt32(dr["Id"]);
  60. (t as Competence).Uid = Convert.ToInt32(dr["Uid"]);
  61. (t as Competence).Sid = Convert.ToInt32(dr["Sid"]);
  62. (t as Competence).STable = Convert.ToInt32(dr["STable"]);
  63. break;
  64. case "SetDataType":
  65. (t as SetDataType).Id = Convert.ToInt32(dr["Id"]);
  66. (t as SetDataType).Name = dr["Name"].ToString();
  67. (t as SetDataType).IsEnable = Convert.ToInt32(dr["IsEnable"]);
  68. break;
  69. case "SetData":
  70. (t as SetData).Id = Convert.ToInt32(dr["Id"]);
  71. (t as SetData).Name = dr["Name"].ToString();
  72. (t as SetData).Remark = dr["Remark"].ToString();
  73. (t as SetData).STid = Convert.ToInt32(dr["STid"]);
  74. (t as SetData).IsDel = Convert.ToInt32(dr["IsDel"]);
  75. break;
  76. case "Users":
  77. (t as Users).Id = Convert.ToInt32(dr["Id"]);
  78. (t as Users).CnName = dr["CnName"].ToString();
  79. (t as Users).EnName = dr["EnName"].ToString();
  80. (t as Users).Number = dr["Number"].ToString();
  81. (t as Users).Did = Convert.ToInt32(dr["Did"]);
  82. (t as Users).Password = dr["Password"].ToString();
  83. (t as Users).Sex = Convert.ToInt32(dr["Sex"]);
  84. (t as Users).Post = dr["Post"].ToString();
  85. (t as Users).Ext = dr["Ext"].ToString();
  86. (t as Users).Phone = dr["Phone"].ToString();
  87. (t as Users).UrgentPhone = dr["UrgentPhone"].ToString();
  88. (t as Users).Email = dr["Email"].ToString();
  89. (t as Users).Address = dr["Address"].ToString();
  90. (t as Users).Edate = Convert.ToDateTime(dr["Edate"]);
  91. (t as Users).Rdate = Convert.ToDateTime(dr["Rdate"]);
  92. (t as Users).Seniority = Convert.ToInt32(dr["Seniority"]);
  93. (t as Users).Remark = dr["Remark"].ToString();
  94. (t as Users).IsDel = Convert.ToInt32(dr["IsDel"]);
  95. (t as Users).Company = Convert.ToInt32(dr["Company"]);
  96. (t as Users).Birthday = dr["Birthday"].ToString();
  97. (t as Users).IDCard = dr["IDCard"].ToString();
  98. (t as Users).StartWorkDate = dr["StartWorkDate"].ToString();
  99. (t as Users).Education = dr["Education"].ToString();
  100. (t as Users).Professional = dr["Professional"].ToString();
  101. (t as Users).GraduateInstitutions = dr["GraduateInstitutions"].ToString();
  102. (t as Users).TheOrAdultEducation = dr["TheOrAdultEducation"].ToString();
  103. (t as Users).MaritalStatus = dr["MaritalStatus"].ToString();
  104. (t as Users).HomeAddress = dr["HomeAddress"].ToString();
  105. (t as Users).UsePeriod = dr["UsePeriod"].ToString();
  106. (t as Users).WorkExperience = dr["WorkExperience"].ToString();
  107. (t as Users).CertificateTime = dr["CertificateTime"].ToString();
  108. (t as Users).Certificate = dr["Certificate"].ToString();
  109. break;
  110. case "Calendar":
  111. (t as Calendars).Id = Convert.ToInt32(dr["Id"]);
  112. (t as Calendars).CalendarDate = dr["CalendarDate"].ToString();
  113. (t as Calendars).CTid = Convert.ToInt32(dr["CTid"]);
  114. break;
  115. case "AttendanceData":
  116. (t as AttendanceData).Id = Convert.ToInt32(dr["Id"]);
  117. (t as AttendanceData).UserNumber = dr["UserNumber"].ToString();
  118. (t as AttendanceData).SwipeDate = dr["SwipeDate"].ToString();
  119. (t as AttendanceData).SwipeTime = dr["SwipeTime"].ToString();
  120. (t as AttendanceData).InitSwipeTime = dr["InitSwipeTime"].ToString();
  121. break;
  122. case "YearMonth":
  123. (t as YearMonth).YearMonths = dr["YearMonths"].ToString();
  124. break;
  125. case "UpCardAudit":
  126. (t as UpCardAudit).Id = Convert.ToInt32(dr["Id"]);
  127. (t as UpCardAudit).Uid = Convert.ToInt32(dr["Uid"]);
  128. (t as UpCardAudit).YearMonth = dr["YearMonth"].ToString();
  129. (t as UpCardAudit).ApplicationPeriod = dr["ApplicationPeriod"].ToString();
  130. (t as UpCardAudit).Attachment = dr["Attachment"].ToString();
  131. (t as UpCardAudit).Subject = dr["Subject"].ToString();
  132. (t as UpCardAudit).IsAudit = Convert.ToInt32(dr["IsAudit"]);
  133. (t as UpCardAudit).AuditRemark = dr["AuditRemark"].ToString();
  134. (t as UpCardAudit).Operate = Convert.ToInt32(string.IsNullOrEmpty(dr["Operate"].ToString()) ? 0 : dr["Operate"]);
  135. (t as UpCardAudit).OperateTime = dr["OperateTime"].ToString();
  136. (t as UpCardAudit).IsDel = Convert.ToInt32(dr["IsDel"]);
  137. break;
  138. case "UpCardAuditContent":
  139. (t as UpCardAuditContent).Id = Convert.ToInt32(dr["Id"]);
  140. (t as UpCardAuditContent).UCAid = Convert.ToInt32(dr["UCAid"]);
  141. (t as UpCardAuditContent).Did = Convert.ToInt32(dr["Did"]);
  142. (t as UpCardAuditContent).UpCardDate = dr["UpCardDate"].ToString();
  143. (t as UpCardAuditContent).UpCardPeriod = dr["UpCardPeriod"].ToString();
  144. (t as UpCardAuditContent).UpCardHours = Convert.ToDouble(dr["UpCardHours"].ToString());
  145. (t as UpCardAuditContent).IsDel = Convert.ToInt32(dr["IsDel"]);
  146. break;
  147. case "AttendanceAudit":
  148. (t as AttendanceAudit).Id = Convert.ToInt32(dr["Id"]);
  149. (t as AttendanceAudit).UserId = Convert.ToInt32(dr["UserId"]);
  150. (t as AttendanceAudit).Number = dr["Number"].ToString();
  151. (t as AttendanceAudit).CnName = dr["CnName"].ToString();
  152. (t as AttendanceAudit).ApplicationPeriod = dr["ApplicationPeriod"].ToString();
  153. (t as AttendanceAudit).Subject = dr["Subject"].ToString();
  154. (t as AttendanceAudit).Attachment = dr["Attachment"].ToString();
  155. break;
  156. case "ClientData":
  157. (t as ClientData).Id = Convert.ToInt32(dr["Id"]);
  158. (t as ClientData).Did = Convert.ToInt32(dr["Did"]);
  159. (t as ClientData).Name = dr["Name"].ToString();
  160. (t as ClientData).Sex = Convert.ToInt32(dr["Sex"]);
  161. (t as ClientData).UnitName = dr["UnitName"].ToString();
  162. (t as ClientData).UnitAbbreviation = dr["UnitAbbreviation"].ToString();
  163. (t as ClientData).Post = dr["Post"].ToString();
  164. (t as ClientData).Tel = dr["Tel"].ToString();
  165. (t as ClientData).Email = dr["Email"].ToString();
  166. (t as ClientData).Fax = dr["Fax"].ToString();
  167. (t as ClientData).OtherInformation = dr["OtherInformation"].ToString();
  168. (t as ClientData).Operators = Convert.ToInt32(dr["Operator"]);
  169. (t as ClientData).OperatorsDate = dr["OperatorDate"].ToString();
  170. (t as ClientData).IsDel = Convert.ToInt32(dr["IsDel"]);
  171. (t as ClientData).Lid = Convert.ToInt32(dr["Lid"]);
  172. (t as ClientData).ClientLvl = dr["ClientLvl"].ToString();
  173. break;
  174. case "HotelData":
  175. (t as HotelData).Id = Convert.ToInt32(dr["Id"]);
  176. (t as HotelData).City = dr["City"].ToString();
  177. (t as HotelData).Name = dr["Name"].ToString();
  178. (t as HotelData).Level = dr["Level"].ToString();
  179. (t as HotelData).Address = dr["Address"].ToString();
  180. (t as HotelData).Tel = dr["Tel"].ToString();
  181. (t as HotelData).Fax = dr["Fax"].ToString();
  182. (t as HotelData).Contact = dr["Contact"].ToString();
  183. (t as HotelData).ContactPhone = dr["ContactPhone"].ToString();
  184. (t as HotelData).OtherInformation = dr["OtherInformation"].ToString();
  185. (t as HotelData).Operators = Convert.ToInt32(dr["Operator"]);
  186. (t as HotelData).OperatorsDate = dr["OperatorDate"].ToString();
  187. (t as HotelData).IsDel = Convert.ToInt32(dr["IsDel"]);
  188. break;
  189. case "TouristGuideGroundData":
  190. (t as TouristGuideGroundData).Id = Convert.ToInt32(dr["Id"]);
  191. (t as TouristGuideGroundData).StaffType = dr["StaffType"].ToString();
  192. (t as TouristGuideGroundData).UnitArea = dr["UnitArea"].ToString();
  193. (t as TouristGuideGroundData).UnitName = dr["UnitName"].ToString();
  194. (t as TouristGuideGroundData).Address = dr["Address"].ToString();
  195. (t as TouristGuideGroundData).Contact = dr["Contact"].ToString();
  196. (t as TouristGuideGroundData).Tel = dr["Tel"].ToString();
  197. (t as TouristGuideGroundData).Email = dr["Email"].ToString();
  198. (t as TouristGuideGroundData).Fax = dr["Fax"].ToString();
  199. (t as TouristGuideGroundData).OtherInformation = dr["OtherInformation"].ToString();
  200. (t as TouristGuideGroundData).CompanyOrGuide = Convert.ToInt32(dr["CompanyOrGuide"]);
  201. (t as TouristGuideGroundData).Score = Convert.ToInt32(dr["Score"]);
  202. (t as TouristGuideGroundData).SuitScore = dr["SuitScore"].ToString();
  203. (t as TouristGuideGroundData).ServeScore = dr["ServeScore"].ToString();
  204. (t as TouristGuideGroundData).TalkProScore = dr["TalkProScore"].ToString();
  205. (t as TouristGuideGroundData).TimeScore = dr["TimeScore"].ToString();
  206. (t as TouristGuideGroundData).FitScore = dr["FitScore"].ToString();
  207. (t as TouristGuideGroundData).StrainScore = dr["StrainScore"].ToString();
  208. (t as TouristGuideGroundData).LocalAndChineseScore = dr["LocalAndChineseScore"].ToString();
  209. (t as TouristGuideGroundData).Operators = Convert.ToInt32(dr["Operator"]);
  210. (t as TouristGuideGroundData).OperatorsDate = dr["OperatorDate"].ToString();
  211. (t as TouristGuideGroundData).IsDel = Convert.ToInt32(dr["IsDel"]);
  212. break;
  213. case "CarData":
  214. (t as CarData).Id = Convert.ToInt32(dr["Id"]);
  215. (t as CarData).UnitArea = dr["UnitArea"].ToString();
  216. (t as CarData).UnitName = dr["UnitName"].ToString();
  217. (t as CarData).Address = dr["Address"].ToString();
  218. (t as CarData).Contact = dr["Contact"].ToString();
  219. (t as CarData).Tel = dr["Tel"].ToString();
  220. (t as CarData).Email = dr["Email"].ToString();
  221. (t as CarData).Fax = dr["Fax"].ToString();
  222. (t as CarData).CarDes = dr["CarDes"].ToString();
  223. (t as CarData).CarAge = dr["CarAge"].ToString();
  224. (t as CarData).CarPicName = dr["CarPicName"].ToString();
  225. (t as CarData).CarPicPath = dr["CarPicPath"].ToString();
  226. (t as CarData).OtherInformation = dr["OtherInformation"].ToString();
  227. (t as CarData).CompanyOrGuide = Convert.ToInt32(dr["CompanyOrGuide"]);
  228. (t as CarData).Score = Convert.ToInt32(dr["Score"]);
  229. (t as CarData).QualificationScore = dr["QualificationScore"].ToString();
  230. (t as CarData).CarAgeScore = dr["CarAgeScore"].ToString();
  231. (t as CarData).CleanImgScore = dr["CleanImgScore"].ToString();
  232. (t as CarData).SmellScore = dr["SmellScore"].ToString();
  233. (t as CarData).WaterPaperScore = dr["WaterPaperScore"].ToString();
  234. (t as CarData).HardwareScore = dr["HardwareScore"].ToString();
  235. (t as CarData).TimeScore = dr["TimeScore"].ToString();
  236. (t as CarData).SafetyScore = dr["SafetyScore"].ToString();
  237. (t as CarData).DrivingAgeScore = dr["DrivingAgeScore"].ToString();
  238. (t as CarData).Operators = Convert.ToInt32(dr["Operator"]);
  239. (t as CarData).OperatorsDate = dr["OperatorDate"].ToString();
  240. (t as CarData).IsDel = Convert.ToInt32(dr["IsDel"]);
  241. break;
  242. case "InvitationOfficialActivityData":
  243. (t as InvitationOfficialActivityData).Id = Convert.ToInt32(dr["Id"]);
  244. (t as InvitationOfficialActivityData).Country = dr["Country"].ToString();
  245. (t as InvitationOfficialActivityData).City = dr["City"].ToString();
  246. (t as InvitationOfficialActivityData).UnitName = dr["UnitName"].ToString();
  247. (t as InvitationOfficialActivityData).UnitWeb = dr["UnitWeb"].ToString();
  248. (t as InvitationOfficialActivityData).Field = dr["Field"].ToString();
  249. (t as InvitationOfficialActivityData).Address = dr["Address"].ToString();
  250. (t as InvitationOfficialActivityData).UnitInfo = dr["UnitInfo"].ToString();
  251. (t as InvitationOfficialActivityData).Contact = dr["Contact"].ToString();
  252. (t as InvitationOfficialActivityData).Job = dr["Job"].ToString();
  253. (t as InvitationOfficialActivityData).Tel = dr["Tel"].ToString();
  254. (t as InvitationOfficialActivityData).Email = dr["Email"].ToString();
  255. (t as InvitationOfficialActivityData).WeChat = dr["WeChat"].ToString();
  256. (t as InvitationOfficialActivityData).FaceBook = dr["FaceBook"].ToString();
  257. (t as InvitationOfficialActivityData).Ins = dr["Ins"].ToString();
  258. (t as InvitationOfficialActivityData).Delegation = dr["Delegation"].ToString();
  259. (t as InvitationOfficialActivityData).FileName = dr["FileName"].ToString();
  260. (t as InvitationOfficialActivityData).FilePath = dr["FilePath"].ToString();
  261. (t as InvitationOfficialActivityData).SndFileName = dr["SndFileName"].ToString();
  262. (t as InvitationOfficialActivityData).SndFilePath = dr["SndFilePath"].ToString();
  263. (t as InvitationOfficialActivityData).OtherInformation = dr["OtherInformation"].ToString();
  264. (t as InvitationOfficialActivityData).Fax = dr["Fax"].ToString();
  265. (t as InvitationOfficialActivityData).Operators = Convert.ToInt32(dr["Operator"]);
  266. (t as InvitationOfficialActivityData).OperatorsDate = dr["OperatorDate"].ToString();
  267. (t as InvitationOfficialActivityData).IsDel = Convert.ToInt32(dr["IsDel"]);
  268. (t as InvitationOfficialActivityData).Backdrop = dr["Backdrop"].ToString();
  269. break;
  270. case "DelegationInfo":
  271. (t as DelegationInfo).Id = Convert.ToInt32(dr["Id"]);
  272. (t as DelegationInfo).SalesQuoteNo = dr["SalesQuoteNo"].ToString();
  273. (t as DelegationInfo).SalesDate = dr["SalesDate"].ToString();
  274. (t as DelegationInfo).ClientName = dr["ClientName"].ToString();
  275. (t as DelegationInfo).ClientUnit = dr["ClientUnit"].ToString();
  276. (t as DelegationInfo).TourCode = dr["TourCode"].ToString();
  277. (t as DelegationInfo).TeamName = dr["TeamName"].ToString();
  278. (t as DelegationInfo).TeamDid = Convert.ToInt32(dr["TeamDid"]);
  279. (t as DelegationInfo).VisitDate = dr["VisitDate"].ToString();
  280. (t as DelegationInfo).VisitStartDate = dr["VisitStartDate"].ToString();
  281. (t as DelegationInfo).VisitEndDate = dr["VisitEndDate"].ToString();
  282. (t as DelegationInfo).VisitCountry = dr["VisitCountry"].ToString();
  283. (t as DelegationInfo).VisitPurpose = dr["VisitPurpose"].ToString();
  284. (t as DelegationInfo).VisitDays = Convert.ToInt32(dr["VisitDays"]);
  285. (t as DelegationInfo).VisitPNumber = Convert.ToInt32(dr["VisitPNumber"]);
  286. (t as DelegationInfo).SpecialNeeds = dr["SpecialNeeds"].ToString();
  287. (t as DelegationInfo).OtherNeeds = dr["OtherNeeds"].ToString();
  288. (t as DelegationInfo).ClientNeeds = dr["ClientNeeds"].ToString();
  289. (t as DelegationInfo).Remark = dr["Remark"].ToString();
  290. (t as DelegationInfo).IsState = Convert.ToInt32(dr["IsState"]);
  291. (t as DelegationInfo).JietuanOperator = Convert.ToInt32(dr["JietuanOperator"]);
  292. (t as DelegationInfo).JietuanTime = dr["JietuanTime"].ToString();
  293. (t as DelegationInfo).GroupsOperator = Convert.ToInt32(string.IsNullOrEmpty(dr["GroupsOperator"].ToString()) ? 0 : dr["GroupsOperator"]);
  294. (t as DelegationInfo).GroupsTime = dr["GroupsTime"].ToString();
  295. (t as DelegationInfo).IsDel = Convert.ToInt32(dr["IsDel"]);
  296. (t as DelegationInfo).BudgetCost = dr["BudgetCost"].ToString();
  297. (t as DelegationInfo).TellPhone = dr["TellPhone"].ToString();
  298. (t as DelegationInfo).IsSure = Convert.ToInt32(dr["IsSure"]);
  299. (t as DelegationInfo).TeamLev = dr["TeamLev"].ToString();
  300. (t as DelegationInfo).HotelComplain = Convert.ToInt32(dr["HotelComplain"]);
  301. (t as DelegationInfo).OPComplain = Convert.ToInt32(dr["OPComplain"]);
  302. (t as DelegationInfo).VisaComplain = Convert.ToInt32(dr["VisaComplain"]);
  303. (t as DelegationInfo).OAComplain = Convert.ToInt32(dr["OAComplain"]);
  304. (t as DelegationInfo).AirComplain = Convert.ToInt32(dr["AirComplain"]);
  305. (t as DelegationInfo).Director = Convert.ToInt32(dr["Director"]);
  306. (t as DelegationInfo).TontractTime =dr["TontractTime"].ToString();
  307. (t as DelegationInfo).PaymentMoney = dr["PaymentMoney"].ToString();
  308. (t as DelegationInfo).PayDay = dr["PayDay"].ToString();
  309. (t as DelegationInfo).WeChat = dr["WeChat"].ToString();
  310. #region 新添加字段
  311. (t as DelegationInfo).CGRWSPBMMC = dr["CGRWSPBMMC"].ToString();
  312. (t as DelegationInfo).CGRWSPWH = dr["CGRWSPWH"].ToString();
  313. (t as DelegationInfo).ZZSCBMMC = dr["ZZSCBMMC"].ToString();
  314. (t as DelegationInfo).ZZSCSPWH = dr["ZZSCSPWH"].ToString();
  315. #endregion
  316. (t as DelegationInfo).OpRoyaltyLv = string.IsNullOrWhiteSpace(dr["OpRoyaltyLv"].ToString()) ? 0 : Convert.ToInt32(dr["OpRoyaltyLv"].ToString());
  317. (t as DelegationInfo).OpRoyaltyRemark = dr["OpRoyaltyRemark"].ToString();
  318. break;
  319. case "HotelReservations":
  320. (t as HotelReservations).Id = Convert.ToInt32(dr["Id"]);
  321. (t as HotelReservations).DIId = Convert.ToInt32(dr["DIId"]);
  322. (t as HotelReservations).GTId = Convert.ToInt32(dr["GTId"]);
  323. (t as HotelReservations).CheckNumber = dr["CheckNumber"].ToString();
  324. (t as HotelReservations).ReservationsWebsite = Convert.ToInt32(dr["ReservationsWebsite"]);
  325. (t as HotelReservations).ReservationsNo = dr["ReservationsNo"].ToString();
  326. (t as HotelReservations).DetermineNo = dr["DetermineNo"].ToString();
  327. (t as HotelReservations).City = dr["City"].ToString();
  328. (t as HotelReservations).HotelName = dr["HotelName"].ToString();
  329. (t as HotelReservations).HotelAddress = dr["HotelAddress"].ToString();
  330. (t as HotelReservations).HotelTel = dr["HotelTel"].ToString();
  331. (t as HotelReservations).HotelFax = dr["HotelFax"].ToString();
  332. (t as HotelReservations).GuestName = dr["GuestName"].ToString();
  333. (t as HotelReservations).CheckInDate = dr["CheckInDate"].ToString();
  334. (t as HotelReservations).CheckOutDate = dr["CheckOutDate"].ToString();
  335. (t as HotelReservations).Budget = float.Parse(dr["Budget"].ToString());
  336. (t as HotelReservations).BudgetCurrency = Convert.ToInt32(dr["BudgetCurrency"]);
  337. (t as HotelReservations).SingleRoomCount = Convert.ToInt32(dr["SingleRoomCount"]);
  338. (t as HotelReservations).SingleRoomPrice = float.Parse(dr["SingleRoomPrice"].ToString());
  339. (t as HotelReservations).DoubleRoomCount = Convert.ToInt32(dr["DoubleRoomCount"]);
  340. (t as HotelReservations).DoubleRoomPrice = float.Parse(dr["DoubleRoomPrice"].ToString());
  341. (t as HotelReservations).SuiteRoomCount = Convert.ToInt32(dr["SuiteRoomCount"]);
  342. (t as HotelReservations).SuiteRoomPrice = float.Parse(dr["SuiteRoomPrice"].ToString());
  343. (t as HotelReservations).OtherRoomCount = Convert.ToInt32(dr["OtherRoomCount"]);
  344. (t as HotelReservations).OtherRoomPrice = float.Parse(dr["OtherRoomPrice"].ToString());
  345. (t as HotelReservations).Commission = float.Parse(dr["Commission"].ToString());
  346. (t as HotelReservations).CommissionCurrency = Convert.ToInt32(dr["CommissionCurrency"]);
  347. (t as HotelReservations).CommissionMark = Convert.ToInt32(dr["CommissionMark"]);
  348. (t as HotelReservations).RoomExplanation = dr["RoomExplanation"].ToString();
  349. (t as HotelReservations).Attachment = dr["Attachment"].ToString();
  350. (t as HotelReservations).Remark = dr["Remark"].ToString();
  351. (t as HotelReservations).CardPrice = float.Parse(dr["CardPrice"].ToString());
  352. (t as HotelReservations).IsCardPrice = Convert.ToInt32(dr["IsCardPrice"]);
  353. (t as HotelReservations).Operators = Convert.ToInt32(dr["Operator"]);
  354. (t as HotelReservations).OperatorsDate = dr["OperatorDate"].ToString();
  355. (t as HotelReservations).IsDel = Convert.ToInt32(dr["IsDel"]);
  356. (t as HotelReservations).BreakfastPrice = float.Parse(dr["breakfastPrice"].ToString());
  357. (t as HotelReservations).Isoppay = Convert.ToInt32(dr["isoppay"]);
  358. (t as HotelReservations).cboOne = Convert.ToInt32(dr["cboOne"]);
  359. (t as HotelReservations).cboTwo = Convert.ToInt32(dr["cboTwo"]);
  360. (t as HotelReservations).cboThree = Convert.ToInt32(dr["cboThree"]);
  361. (t as HotelReservations).cboFour = Convert.ToInt32(dr["cboFour"]);
  362. (t as HotelReservations).PredictSingleRoom = string.IsNullOrWhiteSpace(dr["PredictSingleRoom"].ToString()) ? 0 : int.Parse(dr["PredictSingleRoom"].ToString());
  363. (t as HotelReservations).PredictDoubleRoom = string.IsNullOrWhiteSpace(dr["PredictDoubleRoom"].ToString()) ? 0 : int.Parse(dr["PredictDoubleRoom"].ToString());
  364. (t as HotelReservations).PredictSuiteRoom = string.IsNullOrWhiteSpace(dr["PredictSuiteRoom"].ToString()) ? 0 : int.Parse(dr["PredictSuiteRoom"].ToString());
  365. (t as HotelReservations).PredictOtherRoom = string.IsNullOrWhiteSpace(dr["PredictOtherRoom"].ToString()) ? 0 : int.Parse(dr["PredictOtherRoom"].ToString());
  366. (t as HotelReservations).GovernmentRent = string.IsNullOrWhiteSpace(dr["GovernmentRent"].ToString()) ? 0.00M : Convert.ToDecimal(dr["GovernmentRent"]);
  367. (t as HotelReservations).CityTax = string.IsNullOrWhiteSpace(dr["CityTax"].ToString()) ? 0.00M : Convert.ToDecimal(dr["CityTax"].ToString());
  368. (t as HotelReservations).CheckType = dr["CheckType"].ToString();
  369. break;
  370. case "CreditCardPayment":
  371. (t as CreditCardPayment).Id = Convert.ToInt32(dr["Id"]);
  372. (t as CreditCardPayment).PayDId = Convert.ToInt32(dr["PayDId"]);
  373. (t as CreditCardPayment).ConsumptionPatterns = dr["ConsumptionPatterns"].ToString();
  374. (t as CreditCardPayment).ConsumptionDate = dr["ConsumptionDate"].ToString();
  375. (t as CreditCardPayment).CTDId = Convert.ToInt32(dr["CTDId"]);
  376. (t as CreditCardPayment).BankNo = dr["BankNo"].ToString();
  377. (t as CreditCardPayment).CardholderName = dr["CardholderName"].ToString();
  378. (t as CreditCardPayment).PayMoney = float.Parse(dr["PayMoney"].ToString());
  379. (t as CreditCardPayment).PaymentCurrency = Convert.ToInt32(dr["PaymentCurrency"]);
  380. (t as CreditCardPayment).DayRate = dr["DayRate"].ToString();
  381. (t as CreditCardPayment).CompanyBankNo = dr["CompanyBankNo"].ToString();
  382. (t as CreditCardPayment).OtherBankName = dr["OtherBankName"].ToString();
  383. (t as CreditCardPayment).OtherSideNo = dr["OtherSideNo"].ToString();
  384. (t as CreditCardPayment).OtherSideName = dr["OtherSideName"].ToString();
  385. (t as CreditCardPayment).Remark = dr["Remark"].ToString();
  386. (t as CreditCardPayment).Operators = Convert.ToInt32(dr["Operator"]);
  387. (t as CreditCardPayment).OperatorsDate = dr["OperatorDate"].ToString();
  388. (t as CreditCardPayment).MFOperators = Convert.ToInt32(dr["MFOperator"]);
  389. (t as CreditCardPayment).MFOperatorsDate = dr["MFOperatorDate"].ToString();
  390. (t as CreditCardPayment).IsAuditDM = Convert.ToInt32(dr["IsAuditDM"]);
  391. (t as CreditCardPayment).AuditDMOperate = Convert.ToInt32(dr["AuditDMOperate"]);
  392. (t as CreditCardPayment).AuditDMDate = dr["AuditDMDate"].ToString();
  393. (t as CreditCardPayment).IsAuditMF = Convert.ToInt32(dr["IsAuditMF"]);
  394. (t as CreditCardPayment).AuditMFOperate = Convert.ToInt32(dr["AuditMFOperate"]);
  395. (t as CreditCardPayment).AuditMFDate = dr["AuditMFDate"].ToString();
  396. (t as CreditCardPayment).IsAuditGM = Convert.ToInt32(dr["IsAuditGM"]);
  397. (t as CreditCardPayment).AuditGMOperate = Convert.ToInt32(dr["AuditGMOperate"]);
  398. (t as CreditCardPayment).AuditGMDate = dr["AuditGMDate"].ToString();
  399. (t as CreditCardPayment).IsPay = Convert.ToInt32(dr["IsPay"]);
  400. (t as CreditCardPayment).DIId = Convert.ToInt32(dr["DIId"]);
  401. (t as CreditCardPayment).CId = Convert.ToInt32(dr["CId"]);
  402. (t as CreditCardPayment).CTable = Convert.ToInt32(dr["CTable"]);
  403. (t as CreditCardPayment).IsDel = Convert.ToInt32(dr["IsDel"]);
  404. (t as CreditCardPayment).PayPercentage = dr["PayPercentage"].ToString();
  405. (t as CreditCardPayment).PayThenMoney = dr["PayThenMoney"].ToString();
  406. (t as CreditCardPayment).PayThenMoneyOld = dr["PayThenMoneyOld"].ToString();
  407. (t as CreditCardPayment).PayPercentageOld = dr["PayPercentageOld"].ToString();
  408. (t as CreditCardPayment).UpdateDate = dr["UpdateDate"].ToString();
  409. (t as CreditCardPayment).Payee = dr["Payee"].ToString();
  410. try { (t as CreditCardPayment).RMBPrice = float.Parse(dr["RMBPrice"].ToString()); }
  411. catch { (t as CreditCardPayment).RMBPrice = 0.00f; }
  412. (t as CreditCardPayment).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  413. (t as CreditCardPayment).ExceedBudget = float.Parse(dr["ExceedBudget"].ToString());
  414. (t as CreditCardPayment).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  415. break;
  416. case "InvitationOfficialActivities":
  417. (t as InvitationOfficialActivities).Id = Convert.ToInt32(dr["Id"]);
  418. (t as InvitationOfficialActivities).DIId = Convert.ToInt32(dr["DIId"]);
  419. (t as InvitationOfficialActivities).InviterArea = dr["InviterArea"].ToString();
  420. (t as InvitationOfficialActivities).Inviter = dr["Inviter"].ToString();
  421. (t as InvitationOfficialActivities).InviteTime = dr["InviteTime"].ToString();
  422. (t as InvitationOfficialActivities).Attachment = dr["Attachment"].ToString();
  423. (t as InvitationOfficialActivities).InviteCosts = float.Parse(dr["InviteCosts"].ToString());
  424. (t as InvitationOfficialActivities).Currency = Convert.ToInt32(dr["Currency"]);
  425. (t as InvitationOfficialActivities).SendCost = float.Parse(dr["SendCost"].ToString());
  426. (t as InvitationOfficialActivities).IsGoOfficaiaBussiness = Convert.ToInt32(dr["IsGoOfficialBusiness"]);
  427. (t as InvitationOfficialActivities).Remark = dr["Remark"].ToString();
  428. (t as InvitationOfficialActivities).Operators = Convert.ToInt32(dr["Operator"]);
  429. (t as InvitationOfficialActivities).OperatorsDate = dr["OperatorDate"].ToString();
  430. (t as InvitationOfficialActivities).IsDel = Convert.ToInt32(dr["IsDel"]);
  431. (t as InvitationOfficialActivities).EventsCost = string.IsNullOrWhiteSpace(dr["EventsCost"].ToString()) ? 0.00F : float.Parse(dr["EventsCost"].ToString());
  432. (t as InvitationOfficialActivities).TranslateCost = string.IsNullOrWhiteSpace(dr["TranslateCost"].ToString()) ? 0.00F : float.Parse(dr["TranslateCost"].ToString());
  433. (t as InvitationOfficialActivities).SendCurrency = string.IsNullOrWhiteSpace(dr["SendCurrency"].ToString()) ? 0 : Convert.ToInt32(dr["SendCurrency"]);
  434. (t as InvitationOfficialActivities).EventsCurrency = string.IsNullOrWhiteSpace(dr["EventsCurrency"].ToString()) ? 0 : Convert.ToInt32(dr["EventsCurrency"]);
  435. (t as InvitationOfficialActivities).TranslateCurrency = string.IsNullOrWhiteSpace(dr["TranslateCurrency"].ToString()) ? 0 : Convert.ToInt32(dr["TranslateCurrency"]);
  436. break;
  437. case "CarTouristGuideGroundReservations":
  438. (t as CarTouristGuideGroundReservations).Id = Convert.ToInt32(dr["Id"]);
  439. (t as CarTouristGuideGroundReservations).DIId = Convert.ToInt32(dr["DIId"]);
  440. (t as CarTouristGuideGroundReservations).Area = dr["Area"].ToString();
  441. (t as CarTouristGuideGroundReservations).ServiceCompany = dr["ServiceCompany"].ToString();
  442. (t as CarTouristGuideGroundReservations).ServiceGuide = dr["ServiceGuide"].ToString();
  443. (t as CarTouristGuideGroundReservations).ServiceTel = dr["ServiceTel"].ToString();
  444. (t as CarTouristGuideGroundReservations).BusName = dr["BusName"].ToString();
  445. (t as CarTouristGuideGroundReservations).BusDescription = dr["BusDescription"].ToString();
  446. (t as CarTouristGuideGroundReservations).BusTel = (dr["BusTel"].ToString());
  447. (t as CarTouristGuideGroundReservations).ServiceStartTime = dr["ServiceStartTime"].ToString();
  448. (t as CarTouristGuideGroundReservations).ServiceEndTime = dr["ServiceEndTime"].ToString();
  449. (t as CarTouristGuideGroundReservations).ServiceDescription = dr["ServiceDescription"].ToString();
  450. (t as CarTouristGuideGroundReservations).ServiceQuotedPrice = float.Parse(dr["ServiceQuotedPrice"].ToString());
  451. (t as CarTouristGuideGroundReservations).CId = Convert.ToInt32(dr["CId"]);
  452. (t as CarTouristGuideGroundReservations).QuotedPriceExplanation = dr["QuotedPriceExplanation"].ToString();
  453. (t as CarTouristGuideGroundReservations).Remark = dr["Remark"].ToString();
  454. (t as CarTouristGuideGroundReservations).Operators = Convert.ToInt32(dr["Operator"]);
  455. (t as CarTouristGuideGroundReservations).OperatorsDate = dr["OperatorDate"].ToString();
  456. (t as CarTouristGuideGroundReservations).IsDel = Convert.ToInt32(dr["IsDel"]);
  457. (t as CarTouristGuideGroundReservations).OrbitalPrivateTransfer = Convert.ToInt32(dr["OrbitalPrivateTransfer"]);
  458. break;
  459. case "CarTouristGuideGroundReservationsContent":
  460. (t as CarTouristGuideGroundReservationsContent).Id = Convert.ToInt32(dr["Id"]);
  461. (t as CarTouristGuideGroundReservationsContent).DIId = Convert.ToInt32(dr["DIId"]);
  462. (t as CarTouristGuideGroundReservationsContent).CTGGRId = Convert.ToInt32(dr["CTGGRId"]);
  463. (t as CarTouristGuideGroundReservationsContent).SId = Convert.ToInt32(dr["SId"]);
  464. (t as CarTouristGuideGroundReservationsContent).Price = float.Parse(dr["Price"].ToString());
  465. (t as CarTouristGuideGroundReservationsContent).Currency = Convert.ToInt32(dr["Currency"]);
  466. (t as CarTouristGuideGroundReservationsContent).PriceContent = (dr["PriceContent"].ToString());
  467. (t as CarTouristGuideGroundReservationsContent).Remark = dr["Remark"].ToString();
  468. (t as CarTouristGuideGroundReservationsContent).Operators = Convert.ToInt32(dr["Operator"]);
  469. (t as CarTouristGuideGroundReservationsContent).OperatorsDate = dr["OperatorDate"].ToString();
  470. (t as CarTouristGuideGroundReservationsContent).IsDel = Convert.ToInt32(dr["IsDel"]);
  471. break;
  472. case "Visa":
  473. (t as Visa).Id = Convert.ToInt32(dr["Id"]);
  474. (t as Visa).DIId = Convert.ToInt32(dr["DIId"]);
  475. (t as Visa).VisaClient = dr["VisaClient"].ToString();
  476. (t as Visa).VisaPrice = float.Parse(dr["VisaPrice"].ToString());
  477. (t as Visa).VisaCurrency = Convert.ToInt32(dr["VisaCurrency"]);
  478. (t as Visa).IsThird = Convert.ToInt32(dr["IsThird"]);
  479. (t as Visa).VisaAttachment = dr["VisaAttachment"].ToString();
  480. (t as Visa).Remark = dr["Remark"].ToString();
  481. (t as Visa).Operators = Convert.ToInt32(dr["Operator"]);
  482. (t as Visa).OperatorsDate = dr["OperatorDate"].ToString();
  483. (t as Visa).IsDel = Convert.ToInt32(dr["IsDel"]);
  484. (t as Visa).PassengerType = dr["PassengerType"].ToString();
  485. (t as Visa).VisaNumber = Convert.ToInt32(dr["VisaNumber"]);
  486. (t as Visa).VisaFreeNumber = Convert.ToInt32(dr["VisaFreeNumber"]);
  487. break;
  488. case "GroupsCustomers":
  489. (t as GroupsCustomers).Id = Convert.ToInt32(dr["Id"]);
  490. (t as GroupsCustomers).DIId = Convert.ToInt32(dr["DIId"]);
  491. (t as GroupsCustomers).ClientName = dr["ClientName"].ToString();
  492. (t as GroupsCustomers).InsuranceCosts = float.Parse(dr["InsuranceCosts"].ToString());
  493. (t as GroupsCustomers).Currency = Convert.ToInt32(dr["Currency"]);
  494. (t as GroupsCustomers).Attachment = dr["Attachment"].ToString();
  495. (t as GroupsCustomers).Remark = dr["Remark"].ToString();
  496. (t as GroupsCustomers).Operators = Convert.ToInt32(dr["Operator"]);
  497. (t as GroupsCustomers).OperatorsDate = dr["OperatorDate"].ToString();
  498. (t as GroupsCustomers).IsDel = Convert.ToInt32(dr["IsDel"]);
  499. (t as GroupsCustomers).Iid = Convert.ToInt32(dr["Iid"]);
  500. break;
  501. case "Stroke":
  502. (t as Stroke).Id = Convert.ToInt32(dr["Id"]);
  503. (t as Stroke).DIId = Convert.ToInt32(dr["DIId"]);
  504. (t as Stroke).StrokeName = dr["StrokeName"].ToString();
  505. (t as Stroke).WayCity = dr["WayCity"].ToString();
  506. (t as Stroke).Days = Convert.ToInt32(dr["Days"]);
  507. (t as Stroke).PNumber = Convert.ToInt32(dr["PNumber"]);
  508. (t as Stroke).Remark = dr["Remark"].ToString();
  509. (t as Stroke).Operators = Convert.ToInt32(dr["Operator"]);
  510. (t as Stroke).OperatorsDate = dr["OperatorDate"].ToString();
  511. (t as Stroke).IsDel = Convert.ToInt32(dr["IsDel"]);
  512. break;
  513. case "StrokeContent":
  514. (t as StrokeContent).Id = Convert.ToInt32(dr["Id"]);
  515. (t as StrokeContent).SId = Convert.ToInt32(dr["SId"]);
  516. (t as StrokeContent).Date = dr["Date"].ToString();
  517. (t as StrokeContent).CityRange = dr["CityRange"].ToString();
  518. (t as StrokeContent).Traffic = dr["Traffic"].ToString();
  519. (t as StrokeContent).Content = dr["Content"].ToString();
  520. (t as StrokeContent).Point = Convert.ToInt32(dr["Point"]);
  521. break;
  522. case "GroupsTaskAssignment":
  523. (t as GroupsTaskAssignment).Id = Convert.ToInt32(dr["Id"]);
  524. (t as GroupsTaskAssignment).DIId = Convert.ToInt32(dr["DIId"]);
  525. (t as GroupsTaskAssignment).CTId = Convert.ToInt32(dr["CTId"]);
  526. (t as GroupsTaskAssignment).UId = Convert.ToInt32(dr["UId"]);
  527. (t as GroupsTaskAssignment).IsEnable = Convert.ToInt32(dr["IsEnable"]);
  528. (t as GroupsTaskAssignment).Operators = Convert.ToInt32(dr["Operator"]);
  529. (t as GroupsTaskAssignment).OperatorsDate = dr["OperatorDate"].ToString();
  530. break;
  531. case "AirTicketReservations":
  532. (t as AirTicketReservations).Id = Convert.ToInt32(dr["Id"]);
  533. (t as AirTicketReservations).DIId = Convert.ToInt32(dr["DIId"]);
  534. (t as AirTicketReservations).FlightsCode = dr["FlightsCode"].ToString();
  535. (t as AirTicketReservations).FlightsDate = dr["FlightsDate"].ToString();
  536. (t as AirTicketReservations).FlightsTime = dr["FlightsTime"].ToString();
  537. (t as AirTicketReservations).ArrivedTime = dr["ArrivedTime"].ToString();
  538. (t as AirTicketReservations).IsCheckIn = dr["IsCheckIn"].ToString();
  539. (t as AirTicketReservations).IsSetSeat = dr["IsSetSeat"].ToString();
  540. (t as AirTicketReservations).IsPackage = dr["IsPackage"].ToString();
  541. (t as AirTicketReservations).IsBagHandle = dr["IsBagHandle"].ToString();
  542. (t as AirTicketReservations).IsTrain = dr["IsTrain"].ToString();
  543. (t as AirTicketReservations).FlightsCity = dr["FlightsCity"].ToString();
  544. (t as AirTicketReservations).LeaveDescription = dr["LeaveDescription"].ToString();
  545. (t as AirTicketReservations).FlightsDescription = dr["FlightsDescription"].ToString();
  546. (t as AirTicketReservations).ReturnDescription = dr["ReturnDescription"].ToString();
  547. (t as AirTicketReservations).ClientNum = Convert.ToInt32(dr["ClientNum"]);
  548. (t as AirTicketReservations).ClientName = dr["ClientName"].ToString();
  549. (t as AirTicketReservations).PrePrice = float.Parse(dr["PrePrice"].ToString());
  550. (t as AirTicketReservations).PreCurrency = Convert.ToInt32(dr["PreCurrency"]);
  551. (t as AirTicketReservations).Price = float.Parse(dr["Price"].ToString());
  552. (t as AirTicketReservations).Currency = Convert.ToInt32(dr["Currency"]);
  553. (t as AirTicketReservations).PriceDescription = dr["PriceDescription"].ToString();
  554. (t as AirTicketReservations).TicketNumber = dr["TicketNumber"].ToString();
  555. (t as AirTicketReservations).TicketCode = dr["TicketCode"].ToString();
  556. (t as AirTicketReservations).Remark = dr["Remark"].ToString();
  557. (t as AirTicketReservations).Operators = Convert.ToInt32(dr["Operator"]);
  558. (t as AirTicketReservations).OperatorsDate = dr["OperatorDate"].ToString();
  559. (t as AirTicketReservations).IsDel = Convert.ToInt32(dr["IsDel"]);
  560. (t as AirTicketReservations).CType = Convert.ToInt32(dr["CType"]);
  561. (t as AirTicketReservations).PassengerType = dr["PassengerType"].ToString();
  562. break;
  563. case "GroupsDecreasePayments":
  564. (t as GroupsDecreasePayments).Id = Convert.ToInt32(dr["Id"]);
  565. (t as GroupsDecreasePayments).DIID = Convert.ToInt32(dr["DIID"]);
  566. (t as GroupsDecreasePayments).PriceName = dr["PriceName"].ToString();
  567. (t as GroupsDecreasePayments).Price = float.Parse(dr["Price"].ToString());
  568. (t as GroupsDecreasePayments).Currency = Convert.ToInt32(dr["Currency"]);
  569. (t as GroupsDecreasePayments).FilePath = dr["FilePath"].ToString();
  570. (t as GroupsDecreasePayments).Remark = dr["Remark"].ToString();
  571. (t as GroupsDecreasePayments).Operators = Convert.ToInt32(dr["Operator"]);
  572. (t as GroupsDecreasePayments).OperatorsDate = dr["OperatorDate"].ToString();
  573. (t as GroupsDecreasePayments).IsDel = Convert.ToInt32(dr["IsDel"]);
  574. (t as GroupsDecreasePayments).PriceType = string.IsNullOrWhiteSpace(dr["PriceType"].ToString()) ? 0 : int.Parse(dr["PriceType"].ToString());
  575. (t as GroupsDecreasePayments).coefficient = string.IsNullOrWhiteSpace(dr["coefficient"].ToString()) ? 0.00M :decimal.Parse(dr["coefficient"].ToString()) ;
  576. (t as GroupsDecreasePayments).PriceTypeDetail = string.IsNullOrWhiteSpace(dr["PriceTypeDetail"].ToString()) ? 0 : int.Parse(dr["PriceTypeDetail"].ToString());
  577. break;
  578. case "ViewHotelPay":
  579. (t as ViewHotelPay).City = dr["City"].ToString();
  580. (t as ViewHotelPay).HotelName = dr["HotelName"].ToString();
  581. (t as ViewHotelPay).Name = dr["Name"].ToString();
  582. (t as ViewHotelPay).SingleRoomPrice = float.Parse(dr["SingleRoomPrice"].ToString());
  583. (t as ViewHotelPay).SingleRoomCount = Convert.ToInt32(dr["SingleRoomCount"]);
  584. (t as ViewHotelPay).DoubleRoomPrice = float.Parse(dr["DoubleRoomPrice"].ToString());
  585. (t as ViewHotelPay).DoubleRoomCount = Convert.ToInt32(dr["DoubleRoomCount"]);
  586. (t as ViewHotelPay).SuiteRoomPrice = float.Parse(dr["SuiteRoomPrice"].ToString());
  587. (t as ViewHotelPay).SuiteRoomCount = Convert.ToInt32(dr["SuiteRoomCount"]);
  588. (t as ViewHotelPay).OtherRoomPrice = float.Parse(dr["OtherRoomPrice"].ToString());
  589. (t as ViewHotelPay).OtherRoomCount = Convert.ToInt32(dr["OtherRoomCount"]);
  590. (t as ViewHotelPay).Commission = float.Parse(dr["Commission"].ToString());
  591. (t as ViewHotelPay).Budget = float.Parse(dr["Budget"].ToString());
  592. (t as ViewHotelPay).PayMoney = float.Parse(dr["PayMoney"].ToString());
  593. (t as ViewHotelPay).Spread = float.Parse(dr["Spread"].ToString());
  594. (t as ViewHotelPay).Moneys = float.Parse(dr["Moneys"].ToString());
  595. (t as ViewHotelPay).DayRate = dr["DayRate"].ToString();
  596. (t as ViewHotelPay).OperatorDate = dr["OperatorDate"].ToString();
  597. (t as ViewHotelPay).CheckInDate = dr["CheckInDate"].ToString();
  598. (t as ViewHotelPay).CheckOutDate = dr["CheckOutDate"].ToString();
  599. (t as ViewHotelPay).IsPay = dr["IsPay"].ToString();
  600. (t as ViewHotelPay).Payee = dr["Payee"].ToString();
  601. (t as ViewHotelPay).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  602. (t as ViewHotelPay).PayDid = dr["PayDid"].ToString();
  603. (t as ViewHotelPay).PaydName = dr["PaydName"].ToString();
  604. (t as ViewHotelPay).Operator = dr["Operator"].ToString();
  605. (t as ViewHotelPay).BreakfasePrice =float.Parse(dr["BreakfasePrice"].ToString());
  606. (t as ViewHotelPay).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  607. (t as ViewHotelPay).GovernmentRent = string.IsNullOrWhiteSpace(dr["GovernmentRent"].ToString()) ? 0.00M : decimal.Parse(dr["GovernmentRent"].ToString());
  608. (t as ViewHotelPay).CityTax = string.IsNullOrWhiteSpace(dr["CityTax"].ToString()) ? 0.00M : decimal.Parse(dr["CityTax"].ToString());
  609. (t as ViewHotelPay).CarType=dr["CarType"].ToString();
  610. (t as ViewHotelPay).CheckType=dr["CheckType"].ToString();
  611. break;
  612. case "ViewVisaPay":
  613. (t as ViewVisaPay).VisaClient = dr["VisaClient"].ToString();
  614. (t as ViewVisaPay).Name = dr["Name"].ToString();
  615. (t as ViewVisaPay).Spread = float.Parse(dr["Spread"].ToString());
  616. (t as ViewVisaPay).Remark = dr["Remark"].ToString();
  617. (t as ViewVisaPay).DayRate = dr["DayRate"].ToString();
  618. try
  619. {
  620. (t as ViewVisaPay).RMBPrice = float.Parse(dr["RMBPrice"].ToString());
  621. }
  622. catch { (t as ViewVisaPay).RMBPrice = 0f; }
  623. (t as ViewVisaPay).PayPercentage = dr["PayPercentage"].ToString();
  624. (t as ViewVisaPay).PayThenMoney = dr["PayThenMoney"].ToString();
  625. (t as ViewVisaPay).OperatorDate = dr["OperatorDate"].ToString();
  626. (t as ViewVisaPay).IsPay = dr["IsPay"].ToString();
  627. (t as ViewVisaPay).Payee = dr["Payee"].ToString();
  628. (t as ViewVisaPay).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  629. (t as ViewVisaPay).PayDid = dr["PayDid"].ToString();
  630. (t as ViewVisaPay).PaydName = dr["PaydName"].ToString();
  631. (t as ViewVisaPay).AuditGMDate = dr["AuditGMDate"].ToString();
  632. (t as ViewVisaPay).Operator = dr["Operator"].ToString();
  633. (t as ViewVisaPay).ConsumptionPatterns = dr["consumptionPatterns"].ToString();
  634. (t as ViewVisaPay).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  635. (t as ViewVisaPay).CarType=dr["CarType"].ToString();
  636. break;
  637. case "ViewInvitationOfficialActivitiesPay":
  638. (t as ViewInvitationOfficialActivitiesPay).InviterArea = dr["InviterArea"].ToString();
  639. (t as ViewInvitationOfficialActivitiesPay).Inviter = dr["Inviter"].ToString();
  640. (t as ViewInvitationOfficialActivitiesPay).InviteTime = dr["InviteTime"].ToString();
  641. (t as ViewInvitationOfficialActivitiesPay).Name = dr["Name"].ToString();
  642. (t as ViewInvitationOfficialActivitiesPay).InviteCosts = float.Parse(dr["InviteCosts"].ToString());
  643. (t as ViewInvitationOfficialActivitiesPay).PayMoney = float.Parse(dr["PayMoney"].ToString());
  644. (t as ViewInvitationOfficialActivitiesPay).DayRate = dr["DayRate"].ToString();
  645. (t as ViewInvitationOfficialActivitiesPay).Remark = dr["Remark"].ToString();
  646. (t as ViewInvitationOfficialActivitiesPay).OperatorDate = dr["OperatorDate"].ToString();
  647. try
  648. {
  649. (t as ViewInvitationOfficialActivitiesPay).RMBPrice = float.Parse(dr["RMBPrice"].ToString());
  650. }
  651. catch { (t as ViewInvitationOfficialActivitiesPay).RMBPrice = 0f; }
  652. (t as ViewInvitationOfficialActivitiesPay).IsPay = dr["IsPay"].ToString();
  653. (t as ViewInvitationOfficialActivitiesPay).Payee = dr["Payee"].ToString();
  654. (t as ViewInvitationOfficialActivitiesPay).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  655. (t as ViewInvitationOfficialActivitiesPay).PayDid = dr["PayDid"].ToString();
  656. (t as ViewInvitationOfficialActivitiesPay).PaydName = dr["PaydName"].ToString();
  657. (t as ViewInvitationOfficialActivitiesPay).AuditGMDate = dr["AuditGMDate"].ToString();
  658. (t as ViewInvitationOfficialActivitiesPay).Operator = dr["Operator"].ToString();
  659. (t as ViewInvitationOfficialActivitiesPay).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  660. (t as ViewInvitationOfficialActivitiesPay).SendCost = string.IsNullOrWhiteSpace(dr["SendCost"].ToString()) ? 0.00F : float.Parse(dr["SendCost"].ToString());
  661. (t as ViewInvitationOfficialActivitiesPay).EventsCost = string.IsNullOrWhiteSpace(dr["EventsCost"].ToString()) ? 0.00F : float.Parse(dr["EventsCost"].ToString());
  662. (t as ViewInvitationOfficialActivitiesPay).TranslateCost = string.IsNullOrWhiteSpace(dr["TranslateCost"].ToString()) ? 0.00F : float.Parse(dr["TranslateCost"].ToString());
  663. (t as ViewInvitationOfficialActivitiesPay).SendCurrency = dr["SendCurrency"].ToString();
  664. (t as ViewInvitationOfficialActivitiesPay).EventsCurrency = dr["EventsCurrency"].ToString();
  665. (t as ViewInvitationOfficialActivitiesPay).TranslateCurrency = dr["TranslateCurrency"].ToString();
  666. break;
  667. case "ViewAirTicketReservationsPay":
  668. (t as ViewAirTicketReservationsPay).FlightsCode = dr["FlightsCode"].ToString();
  669. (t as ViewAirTicketReservationsPay).FlightsCity = dr["FlightsCity"].ToString();
  670. (t as ViewAirTicketReservationsPay).FlightsDate = dr["FlightsDate"].ToString();
  671. (t as ViewAirTicketReservationsPay).FlightsTime = dr["FlightsTime"].ToString();
  672. (t as ViewAirTicketReservationsPay).ClientName = dr["ClientName"].ToString();
  673. (t as ViewAirTicketReservationsPay).Name = dr["Name"].ToString();
  674. (t as ViewAirTicketReservationsPay).Spread = float.Parse(dr["Spread"].ToString());
  675. (t as ViewAirTicketReservationsPay).PrePrice = float.Parse(dr["PrePrice"].ToString());
  676. (t as ViewAirTicketReservationsPay).Price = string.IsNullOrEmpty(dr["Price"].ToString()) ? 0 : float.Parse(dr["Price"].ToString());
  677. (t as ViewAirTicketReservationsPay).DayRate = dr["DayRate"].ToString();
  678. (t as ViewAirTicketReservationsPay).PriceDescription = dr["PriceDescription"].ToString();
  679. (t as ViewAirTicketReservationsPay).OperatorDate = dr["OperatorDate"].ToString();
  680. (t as ViewAirTicketReservationsPay).FlightsDescription = dr["FlightsDescription"].ToString();
  681. try
  682. {
  683. (t as ViewAirTicketReservationsPay).RMBPrice = float.Parse(dr["RMBPrice"].ToString());
  684. }
  685. catch
  686. {
  687. (t as ViewAirTicketReservationsPay).RMBPrice = float.Parse(dr["Spread"].ToString()) * float.Parse(dr["DayRate"].ToString());
  688. }
  689. (t as ViewAirTicketReservationsPay).IsPay = dr["IsPay"].ToString();
  690. (t as ViewAirTicketReservationsPay).Payee = dr["Payee"].ToString();
  691. (t as ViewAirTicketReservationsPay).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  692. (t as ViewAirTicketReservationsPay).PayDid = dr["PayDid"].ToString();
  693. (t as ViewAirTicketReservationsPay).PaydName = dr["PaydName"].ToString();
  694. (t as ViewAirTicketReservationsPay).AuditGMDate = dr["AuditGMDate"].ToString();
  695. (t as ViewAirTicketReservationsPay).Operator = dr["Operator"].ToString();
  696. (t as ViewAirTicketReservationsPay).ConsumptionDate = dr["ConsumptionDate"].ToString();
  697. (t as ViewAirTicketReservationsPay).CTDId = dr["CTDId"].ToString();
  698. (t as ViewAirTicketReservationsPay).CType = dr["CType"].ToString();
  699. (t as ViewAirTicketReservationsPay).ArrivedTime = dr["ArrivedTime"].ToString();
  700. (t as ViewAirTicketReservationsPay).ClientNum = Convert.ToInt32(dr["ClientNum"]);
  701. (t as ViewAirTicketReservationsPay).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  702. try
  703. {(t as ViewAirTicketReservationsPay).CarType = dr["CarType"].ToString();}
  704. catch (Exception)
  705. { (t as ViewAirTicketReservationsPay).CarType = "无"; }
  706. break;
  707. case "ViewGroupsCustomersPay":
  708. (t as ViewGroupsCustomersPay).ClientName = dr["ClientName"].ToString();
  709. (t as ViewGroupsCustomersPay).Name = dr["Name"].ToString();
  710. (t as ViewGroupsCustomersPay).Spread = float.Parse(dr["Spread"].ToString());
  711. (t as ViewGroupsCustomersPay).Remark = dr["Remark"].ToString();
  712. (t as ViewGroupsCustomersPay).OperatorDate = dr["OperatorDate"].ToString();
  713. (t as ViewGroupsCustomersPay).IsPay = dr["IsPay"].ToString();
  714. (t as ViewGroupsCustomersPay).Payee = dr["Payee"].ToString();
  715. (t as ViewGroupsCustomersPay).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  716. (t as ViewGroupsCustomersPay).PayDid = dr["PayDid"].ToString();
  717. (t as ViewGroupsCustomersPay).PaydName = dr["PaydName"].ToString();
  718. (t as ViewGroupsCustomersPay).AuditGMDate = dr["AuditGMDate"].ToString();
  719. (t as ViewGroupsCustomersPay).Operator = dr["Operator"].ToString();
  720. (t as ViewGroupsCustomersPay).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  721. break;
  722. case "ViewGroundPay":
  723. (t as ViewGroundPay).Area = dr["Area"].ToString();
  724. (t as ViewGroundPay).PriceType = dr["PriceType"].ToString();
  725. (t as ViewGroundPay).Price = float.Parse(dr["Price"].ToString());
  726. (t as ViewGroundPay).Currency = dr["Currency"].ToString();
  727. (t as ViewGroundPay).PriceContent = dr["PriceContent"].ToString();
  728. (t as ViewGroundPay).Remark = dr["Remark"].ToString();
  729. (t as ViewGroundPay).OperatorDate = dr["OperatorDate"].ToString();
  730. (t as ViewGroundPay).IsPay = dr["IsPay"].ToString();
  731. (t as ViewGroundPay).Payee = dr["Payee"].ToString();
  732. (t as ViewGroundPay).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  733. (t as ViewGroundPay).PayDid = dr["PayDid"].ToString();
  734. (t as ViewGroundPay).PaydName = dr["PaydName"].ToString();
  735. (t as ViewGroundPay).AuditGMDate = dr["AuditGMDate"].ToString();
  736. (t as ViewGroundPay).Operator = dr["Operator"].ToString();
  737. (t as ViewGroundPay).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  738. (t as ViewGroundPay).PayPercentage = Convert.ToDecimal(dr["PayPercentage"].ToString());
  739. (t as ViewGroundPay).CarType = dr["CarType"].ToString();
  740. break;
  741. case "ViewGroupsDecreasePayments":
  742. (t as ViewGroupsDecreasePayments).PriceName = dr["PriceName"].ToString();
  743. (t as ViewGroupsDecreasePayments).Price = float.Parse(dr["Price"].ToString());
  744. (t as ViewGroupsDecreasePayments).Name = dr["Name"].ToString();
  745. (t as ViewGroupsDecreasePayments).Spread = float.Parse(dr["Spread"].ToString());
  746. (t as ViewGroupsDecreasePayments).DayRate = dr["DayRate"].ToString();
  747. (t as ViewGroupsDecreasePayments).Remark = dr["Remark"].ToString();
  748. try
  749. {
  750. (t as ViewGroupsDecreasePayments).RMBPrice = float.Parse(dr["RMBPrice"].ToString());
  751. }
  752. catch { (t as ViewGroupsDecreasePayments).RMBPrice = 0f; }
  753. (t as ViewGroupsDecreasePayments).OperatorDate = dr["OperatorDate"].ToString();
  754. (t as ViewGroupsDecreasePayments).IsPay = dr["IsPay"].ToString();
  755. (t as ViewGroupsDecreasePayments).Payee = dr["Payee"].ToString();
  756. (t as ViewGroupsDecreasePayments).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  757. (t as ViewGroupsDecreasePayments).PayDid = dr["PayDid"].ToString();
  758. (t as ViewGroupsDecreasePayments).PaydName = dr["PaydName"].ToString();
  759. (t as ViewGroupsDecreasePayments).AuditGMDate = dr["AuditGMDate"].ToString();
  760. (t as ViewGroupsDecreasePayments).Operator = dr["Operator"].ToString();
  761. (t as ViewGroupsDecreasePayments).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  762. (t as ViewGroupsDecreasePayments).PriceType = string.IsNullOrEmpty(dr["PriceType"].ToString()) ? 0 : int.Parse(dr["PriceType"].ToString()) ;
  763. (t as ViewGroupsDecreasePayments).Coefficient = string.IsNullOrEmpty(dr["coefficient"].ToString()) ? 0.00M : decimal.Parse(dr["coefficient"].ToString());
  764. break;
  765. case "ViewGroudCitySumPrice":
  766. (t as ViewGroudCitySumPrice).Area = dr["Area"].ToString();
  767. (t as ViewGroudCitySumPrice).SumPrice = float.Parse(dr["SumPrice"].ToString());
  768. (t as ViewGroudCitySumPrice).Currency = dr["Currency"].ToString();
  769. (t as ViewGroudCitySumPrice).PayMoney = float.Parse(dr["PayMoney"].ToString());
  770. (t as ViewGroudCitySumPrice).DayRate = dr["DayRate"].ToString();
  771. try { (t as ViewGroudCitySumPrice).RMBPrice = float.Parse(dr["RMBPrice"].ToString()); }
  772. catch { (t as ViewGroudCitySumPrice).RMBPrice = 0f; }
  773. (t as ViewGroudCitySumPrice).PayPercentage = dr["PayPercentage"].ToString();
  774. (t as ViewGroudCitySumPrice).PayThenMoney = dr["PayThenMoney"].ToString();
  775. (t as ViewGroudCitySumPrice).OperatorDate = dr["OperatorDate"].ToString();
  776. break;
  777. case "DailyFeePayment":
  778. (t as DailyFeePayment).Id = Convert.ToInt32(dr["Id"]);
  779. (t as DailyFeePayment).Instructions = dr["Instructions"].ToString();
  780. (t as DailyFeePayment).SumPrice = float.Parse(dr["SumPrice"].ToString());
  781. (t as DailyFeePayment).Operators = Convert.ToInt32(dr["Operator"]);
  782. (t as DailyFeePayment).OperatorsDate = dr["OperatorDate"].ToString();
  783. (t as DailyFeePayment).FAudit = Convert.ToInt32(dr["FAudit"]);
  784. (t as DailyFeePayment).FAuditDate = dr["FAuditDate"].ToString();
  785. (t as DailyFeePayment).MAudit = Convert.ToInt32(dr["MAudit"]);
  786. (t as DailyFeePayment).MAuditDate = dr["MAuditDate"].ToString();
  787. (t as DailyFeePayment).Reason = dr["Reason"].ToString();
  788. (t as DailyFeePayment).IsDel = Convert.ToInt32(dr["IsDel"]);
  789. (t as DailyFeePayment).IsPay = Convert.ToInt32(dr["IsPay"]);
  790. (t as DailyFeePayment).OrbitalPrivateTransfer = Convert.ToInt32(dr["OrbitalPrivateTransfer"]);
  791. (t as DailyFeePayment).PriceType = Convert.ToInt32(dr["PriceType"]);
  792. (t as DailyFeePayment).CId = Convert.ToInt32(dr["CId"]);
  793. (t as DailyFeePayment).CName = dr["CName"].ToString();
  794. (t as DailyFeePayment).RAudit = Convert.ToInt32(dr["RAudit"]);
  795. (t as DailyFeePayment).RAuditDate = dr["RAuditDate"].ToString();
  796. (t as DailyFeePayment).AuditOperator = Convert.ToInt32(dr["AuditOperator"]);
  797. break;
  798. case "DailyFeePaymentDesc":
  799. (t as DailyFeePaymentDesc).Id = Convert.ToInt32(dr["Id"]);
  800. (t as DailyFeePaymentDesc).Instructions = dr["Instructions"].ToString();
  801. (t as DailyFeePaymentDesc).SumPrice = float.Parse(dr["SumPrice"].ToString());
  802. (t as DailyFeePaymentDesc).Operators = Convert.ToInt32(dr["Operator"]);
  803. (t as DailyFeePaymentDesc).OperatorsDate = dr["OperatorDate"].ToString();
  804. (t as DailyFeePaymentDesc).FAudit = Convert.ToInt32(dr["FAudit"]);
  805. (t as DailyFeePaymentDesc).FAuditDate = dr["FAuditDate"].ToString();
  806. (t as DailyFeePaymentDesc).MAudit = Convert.ToInt32(dr["MAudit"]);
  807. (t as DailyFeePaymentDesc).MAuditDate = dr["MAuditDate"].ToString();
  808. (t as DailyFeePaymentDesc).Reason = dr["Reason"].ToString();
  809. (t as DailyFeePaymentDesc).IsDel = Convert.ToInt32(dr["IsDel"]);
  810. (t as DailyFeePaymentDesc).IsPay = Convert.ToInt32(dr["IsPay"]);
  811. (t as DailyFeePaymentDesc).OrbitalPrivateTransfer = Convert.ToInt32(dr["OrbitalPrivateTransfer"]);
  812. (t as DailyFeePaymentDesc).PriceType = Convert.ToInt32(dr["PriceType"]);
  813. (t as DailyFeePaymentDesc).CId = Convert.ToInt32(dr["CId"]);
  814. (t as DailyFeePaymentDesc).CName = dr["CName"].ToString();
  815. (t as DailyFeePaymentDesc).RAudit = Convert.ToInt32(dr["RAudit"]);
  816. (t as DailyFeePaymentDesc).RAuditDate = dr["RAuditDate"].ToString();
  817. (t as DailyFeePaymentDesc).AuditOperator = Convert.ToInt32(dr["AuditOperator"]);
  818. (t as DailyFeePaymentDesc).RowNumber = Convert.ToInt32(dr["RowNumber"]);
  819. break;
  820. case "CountData":
  821. (t as CountData).Count = Convert.ToInt32(dr["Count"]);
  822. break;
  823. case "DailyFeePaymentContent":
  824. (t as DailyFeePaymentContent).Id = Convert.ToInt32(dr["Id"]);
  825. (t as DailyFeePaymentContent).DFPID = Convert.ToInt32(dr["DFPID"]);
  826. (t as DailyFeePaymentContent).PriceName = dr["PriceName"].ToString();
  827. (t as DailyFeePaymentContent).Count = float.Parse(dr["Count"].ToString());
  828. (t as DailyFeePaymentContent).Price = float.Parse(dr["Price"].ToString());
  829. (t as DailyFeePaymentContent).ItemSumPrice = float.Parse(dr["ItemSumPrice"].ToString());
  830. (t as DailyFeePaymentContent).Remark = dr["Remark"].ToString();
  831. break;
  832. case "ViewDailyFeePayment":
  833. (t as ViewDailyFeePayment).PriceName = dr["PriceName"].ToString();
  834. (t as ViewDailyFeePayment).Count = Convert.ToInt32(dr["Count"]);
  835. (t as ViewDailyFeePayment).Price = float.Parse(dr["Price"].ToString());
  836. (t as ViewDailyFeePayment).ItemSumPrice = float.Parse(dr["ItemSumPrice"].ToString());
  837. (t as ViewDailyFeePayment).Remark = dr["Remark"].ToString();
  838. break;
  839. case "ForeignReceivables":
  840. (t as ForeignReceivables).Id = Convert.ToInt32(dr["Id"]);
  841. (t as ForeignReceivables).DIId = Convert.ToInt32(dr["DIId"]);
  842. (t as ForeignReceivables).PriceName = dr["PriceName"].ToString();
  843. (t as ForeignReceivables).Price = decimal.Parse(dr["Price"].ToString());
  844. (t as ForeignReceivables).Count = float.Parse(dr["Count"].ToString());
  845. (t as ForeignReceivables).Unit = dr["Unit"].ToString();
  846. (t as ForeignReceivables).ItemSumPrice = decimal.Parse(dr["ItemSumPrice"].ToString());
  847. (t as ForeignReceivables).To = dr["To"].ToString();
  848. (t as ForeignReceivables).ToTel = dr["ToTel"].ToString();
  849. (t as ForeignReceivables).PayDate = dr["PayDate"].ToString();
  850. (t as ForeignReceivables).Attention = dr["Attention"].ToString();
  851. (t as ForeignReceivables).Operators = Convert.ToInt32(dr["Operator"]);
  852. (t as ForeignReceivables).OperatorsDate = dr["OperatorDate"].ToString();
  853. (t as ForeignReceivables).IsDel = Convert.ToInt32(dr["IsDel"]);
  854. try
  855. {
  856. (t as ForeignReceivables).Rate = Convert.ToDecimal(dr["Rate"]);
  857. }
  858. catch
  859. {
  860. (t as ForeignReceivables).Rate = 1;
  861. }
  862. (t as ForeignReceivables).Currency = dr["Currency"].ToString();
  863. (t as ForeignReceivables).AddingWay = Convert.ToInt32(dr["AddingWay"]);
  864. break;
  865. case "Wage":
  866. (t as Wage).Id = Convert.ToInt32(dr["Id"]);
  867. (t as Wage).YearMonth = dr["YearMonth"].ToString();
  868. (t as Wage).UserId = Convert.ToInt32(dr["UserId"]);
  869. (t as Wage).StartDate = dr["StartDate"].ToString();
  870. (t as Wage).EndDate = dr["EndDate"].ToString();
  871. (t as Wage).Basic = float.Parse(dr["Basic"].ToString());
  872. (t as Wage).Floats = float.Parse(dr["Floats"].ToString());
  873. (t as Wage).PostAllowance = float.Parse(dr["PostAllowance"].ToString());
  874. (t as Wage).GarmentWashSubsidies = float.Parse(dr["GarmentWashSubsidies"].ToString());
  875. (t as Wage).CommunicationSubsidies = float.Parse(dr["CommunicationSubsidies"].ToString());
  876. (t as Wage).TrafficSubsidies = float.Parse(dr["TrafficSubsidies"].ToString());
  877. (t as Wage).InformationSecurityFee = float.Parse(dr["InformationSecurityFee"].ToString());
  878. (t as Wage).OperationBonus = float.Parse(dr["OperationBonus"].ToString());
  879. (t as Wage).SpecialAllowance = float.Parse(dr["SpecialAllowance"].ToString());
  880. (t as Wage).OtherSubsidies = float.Parse(dr["OtherSubsidies"].ToString());
  881. (t as Wage).WithholdingInsurance = float.Parse(dr["WithholdingInsurance"].ToString());
  882. (t as Wage).SickLeave = float.Parse(dr["SickLeave"].ToString());
  883. (t as Wage).SomethingFalse = float.Parse(dr["SomethingFalse"].ToString());
  884. (t as Wage).LateTo = float.Parse(dr["LateTo"].ToString());
  885. (t as Wage).LeaveEarly = float.Parse(dr["LeaveEarly"].ToString());
  886. (t as Wage).Absenteeism = float.Parse(dr["Absenteeism"].ToString());
  887. (t as Wage).NotPunch = float.Parse(dr["NotPunch"].ToString());
  888. (t as Wage).OtherDeductions = float.Parse(dr["OtherDeductions"].ToString());
  889. (t as Wage).Should = float.Parse(dr["Should"].ToString());
  890. (t as Wage).TotalDeductions = float.Parse(dr["TotalDeductions"].ToString());
  891. (t as Wage).TotalRealHair = float.Parse(dr["TotalRealHair"].ToString());
  892. (t as Wage).IsLock = Convert.ToInt32(dr["IsLock"]);
  893. (t as Wage).Remark = dr["Remark"].ToString();
  894. (t as Wage).Operators = Convert.ToInt32(dr["Operator"]);
  895. (t as Wage).OperatorsDate = dr["OperatorDate"].ToString();
  896. (t as Wage).IsDel = Convert.ToInt32(dr["IsDel"]);
  897. (t as Wage).Gongjijin = float.Parse(dr["Gongjijin"].ToString());
  898. (t as Wage).GroupCost = float.Parse(dr["GroupCost"].ToString());
  899. try
  900. {
  901. (t as Wage).Tax = float.Parse(dr["Tax"].ToString());
  902. }
  903. catch
  904. {
  905. (t as Wage).Tax = float.Parse("0.00");
  906. }
  907. try
  908. {
  909. (t as Wage).AfterTax = float.Parse(dr["AfterTax"].ToString());
  910. }
  911. catch
  912. {
  913. (t as Wage).AfterTax = float.Parse("0.00");
  914. }
  915. try
  916. {
  917. (t as Wage).Mealsupplement = float.Parse(dr["Mealsupplement"].ToString());
  918. }
  919. catch
  920. {
  921. (t as Wage).Mealsupplement = 0;
  922. }
  923. break;
  924. case "IncreasePayments":
  925. (t as IncreasePayments).Id = Convert.ToInt32(dr["Id"]);
  926. (t as IncreasePayments).YearMonths = dr["YearMonth"].ToString();
  927. (t as IncreasePayments).UserId = Convert.ToInt32(dr["UserId"]);
  928. (t as IncreasePayments).Sid = Convert.ToInt32(dr["Sid"]);
  929. (t as IncreasePayments).OccurrenceDate = dr["OccurrenceDate"].ToString();
  930. (t as IncreasePayments).Money = float.Parse(dr["Money"].ToString());
  931. (t as IncreasePayments).Remark = dr["Remark"].ToString();
  932. (t as IncreasePayments).Operators = Convert.ToInt32(dr["Operator"]);
  933. (t as IncreasePayments).OperatorsDate = dr["OperatorDate"].ToString();
  934. (t as IncreasePayments).IsDel = Convert.ToInt32(dr["IsDel"]);
  935. break;
  936. case "ViewWageSelectAD":
  937. (t as ViewWageSelectAD).SwipeDate = dr["SwipeDate"].ToString();
  938. (t as ViewWageSelectAD).UserNumber = dr["UserNumber"].ToString();
  939. (t as ViewWageSelectAD).A = dr["A"].ToString();
  940. (t as ViewWageSelectAD).B = dr["B"].ToString();
  941. (t as ViewWageSelectAD).C = dr["C"].ToString();
  942. (t as ViewWageSelectAD).D = dr["D"].ToString();
  943. break;
  944. case "ViewUpCardAudit":
  945. (t as ViewUpCardAudit).Uid = Convert.ToInt32(dr["Uid"]);
  946. (t as ViewUpCardAudit).YearMonth = dr["YearMonth"].ToString();
  947. (t as ViewUpCardAudit).IsAudit = Convert.ToInt32(dr["IsAudit"]);
  948. (t as ViewUpCardAudit).UpcardHours = float.Parse(dr["UpcardHours"].ToString());
  949. (t as ViewUpCardAudit).Did = Convert.ToInt32(dr["Did"]);
  950. break;
  951. case "ViewWage":
  952. (t as ViewWage).YearMonth = dr["YearMonth"].ToString();
  953. (t as ViewWage).Date = dr["Date"].ToString();
  954. (t as ViewWage).UserNumber = dr["UserNumber"].ToString();
  955. (t as ViewWage).UserName = dr["UserName"].ToString();
  956. (t as ViewWage).Basic = float.Parse(dr["Basic"].ToString()).ToString("#0.00");
  957. (t as ViewWage).Floats = float.Parse(dr["Floats"].ToString()).ToString("#0.00");
  958. (t as ViewWage).PostAllowance = float.Parse(dr["PostAllowance"].ToString()).ToString("#0.00");
  959. (t as ViewWage).GarmentWashSubsidies = float.Parse(dr["GarmentWashSubsidies"].ToString()).ToString("#0.00");
  960. (t as ViewWage).CommunicationSubsidies = float.Parse(dr["CommunicationSubsidies"].ToString()).ToString("#0.00");
  961. (t as ViewWage).TrafficSubsidies = float.Parse(dr["TrafficSubsidies"].ToString()).ToString("#0.00");
  962. (t as ViewWage).InformationSecurityFee = float.Parse(dr["InformationSecurityFee"].ToString()).ToString("#0.00");
  963. (t as ViewWage).OperationBonus = float.Parse(dr["OperationBonus"].ToString()).ToString("#0.00");
  964. (t as ViewWage).SpecialAllowance = float.Parse(dr["SpecialAllowance"].ToString()).ToString("#0.00");
  965. (t as ViewWage).OtherSubsidies = float.Parse(dr["OtherSubsidies"].ToString()).ToString("#0.00");
  966. (t as ViewWage).WithholdingInsurance = float.Parse(dr["WithholdingInsurance"].ToString()).ToString("#0.00");
  967. (t as ViewWage).SickLeave = float.Parse(dr["SickLeave"].ToString()).ToString("#0.00");
  968. (t as ViewWage).SomethingFalse = float.Parse(dr["SomethingFalse"].ToString()).ToString("#0.00");
  969. (t as ViewWage).LateTo = float.Parse(dr["LateTo"].ToString()).ToString("#0.00");
  970. (t as ViewWage).LeaveEarly = float.Parse(dr["LeaveEarly"].ToString()).ToString("#0.00");
  971. (t as ViewWage).Absenteeism = float.Parse(dr["Absenteeism"].ToString()).ToString("#0.00");
  972. (t as ViewWage).NotPunch = float.Parse(dr["NotPunch"].ToString()).ToString("#0.00");
  973. (t as ViewWage).OtherDeductions = float.Parse(dr["OtherDeductions"].ToString()).ToString("#0.00");
  974. (t as ViewWage).Should = float.Parse(dr["Should"].ToString()).ToString("#0.00");
  975. (t as ViewWage).TotalDeductions = float.Parse(dr["TotalDeductions"].ToString()).ToString("#0.00");
  976. (t as ViewWage).TotalRealHair = float.Parse(dr["TotalRealHair"].ToString()).ToString("#0.00");
  977. (t as ViewWage).WriteVal = "";
  978. (t as ViewWage).Company = Convert.ToInt32(dr["Company"]);
  979. (t as ViewWage).Gongjijin = float.Parse(dr["Gongjijin"].ToString()).ToString("#0.00");
  980. (t as ViewWage).GroupCost = float.Parse(dr["GroupCost"].ToString()).ToString("#0.00");
  981. try
  982. {
  983. (t as ViewWage).Tax = dr["Tax"].ToString();
  984. }
  985. catch
  986. {
  987. (t as ViewWage).Tax = "0.00";
  988. }
  989. try
  990. {
  991. (t as ViewWage).AfterTax = dr["AfterTax"].ToString();
  992. }
  993. catch
  994. {
  995. (t as ViewWage).AfterTax = "0.00";
  996. }
  997. try
  998. {
  999. (t as ViewWage).Mealsupplement = float.Parse(dr["Mealsupplement"].ToString()).ToString("#0.00");
  1000. }
  1001. catch
  1002. {
  1003. (t as ViewWage).Mealsupplement = "0.00";
  1004. }
  1005. break;
  1006. case "SalesQuotation":
  1007. (t as SalesQuotation).Id = Convert.ToInt32(dr["Id"]);
  1008. (t as SalesQuotation).DIID = Convert.ToInt32(dr["DIID"]);
  1009. (t as SalesQuotation).PriceDescription = dr["PriceDescription"].ToString();
  1010. (t as SalesQuotation).Contains = dr["Contains"].ToString();
  1011. (t as SalesQuotation).NoContains = dr["NoContains"].ToString();
  1012. (t as SalesQuotation).ExchangeRate = dr["ExchangeRate"].ToString();
  1013. (t as SalesQuotation).Remark = dr["Remark"].ToString();
  1014. (t as SalesQuotation).Operators = Convert.ToInt32(dr["Operator"]);
  1015. (t as SalesQuotation).OperatorsDate = dr["OperatorDate"].ToString();
  1016. (t as SalesQuotation).IsDel = Convert.ToInt32(dr["IsDel"]);
  1017. break;
  1018. case "ViewMyHotelReservations":
  1019. (t as ViewMyHotelReservations).City = dr["City"].ToString();
  1020. (t as ViewMyHotelReservations).HotelName = dr["HotelName"].ToString();
  1021. (t as ViewMyHotelReservations).Date = dr["Date"].ToString();
  1022. (t as ViewMyHotelReservations).Moneys = dr["Moneys"].ToString();
  1023. (t as ViewMyHotelReservations).RoomExplanation = dr["RoomExplanation"].ToString();
  1024. (t as ViewMyHotelReservations).Consumptionpatterns = dr["Consumptionpatterns"].ToString();
  1025. (t as ViewMyHotelReservations).Name = dr["Name"].ToString();
  1026. (t as ViewMyHotelReservations).BankNo = dr["BankNo"].ToString();
  1027. (t as ViewMyHotelReservations).PayMoney = dr["PayMoney"].ToString();
  1028. (t as ViewMyHotelReservations).PayName = dr["PayName"].ToString();
  1029. (t as ViewMyHotelReservations).Remark = dr["Remark"].ToString();
  1030. (t as ViewMyHotelReservations).BudgetCurrency = dr["BudgetCurrency"].ToString();
  1031. (t as ViewMyHotelReservations).PayMoneys = dr["PayMoneys"].ToString();
  1032. (t as ViewMyHotelReservations).BookingWebsite = dr["BookingWebsite"].ToString();
  1033. (t as ViewMyHotelReservations).PayTime = dr["PayTime"].ToString();
  1034. (t as ViewMyHotelReservations).CardPrice = float.Parse(dr["CardPrice"].ToString());
  1035. break;
  1036. case "DailyManagement":
  1037. (t as DailyManagement).Id = Convert.ToInt32(dr["Id"]);
  1038. (t as DailyManagement).DailyDate = dr["DailyDate"].ToString();
  1039. (t as DailyManagement).WorkTitle = dr["WorkTitle"].ToString();
  1040. (t as DailyManagement).WorkHours = dr["WorkHours"].ToString();
  1041. (t as DailyManagement).CompletionRate = dr["CompletionRate"].ToString();
  1042. (t as DailyManagement).WorkContent = dr["WorkContent"].ToString();
  1043. (t as DailyManagement).UserId = Convert.ToInt32(dr["UserId"]);
  1044. (t as DailyManagement).Dates = dr["Dates"].ToString();
  1045. (t as DailyManagement).IsAudit = Convert.ToInt32(dr["IsAudit"]);
  1046. (t as DailyManagement).AuditUserId = Convert.ToInt32(dr["AuditUserId"]);
  1047. (t as DailyManagement).AuditDate = dr["AuditDate"].ToString();
  1048. (t as DailyManagement).IsDel = Convert.ToInt32(dr["IsDel"]);
  1049. break;
  1050. case "ProceedsReceived":
  1051. (t as ProceedsReceived).Id = Convert.ToInt32(dr["Id"]);
  1052. (t as ProceedsReceived).DIID = Convert.ToInt32(dr["DIID"]);
  1053. (t as ProceedsReceived).SectionTime = dr["SectionTime"].ToString();
  1054. (t as ProceedsReceived).Price = decimal.Parse(dr["Price"].ToString());
  1055. (t as ProceedsReceived).Currency = Convert.ToInt32(dr["Currency"]);
  1056. (t as ProceedsReceived).ReceivablesType = Convert.ToInt32(dr["ReceivablesType"]);
  1057. (t as ProceedsReceived).Client = dr["Client"].ToString();
  1058. (t as ProceedsReceived).Remark = dr["Remark"].ToString();
  1059. (t as ProceedsReceived).Operators = Convert.ToInt32(dr["Operator"]);
  1060. (t as ProceedsReceived).OperatorsDate = dr["OperatorDate"].ToString();
  1061. (t as ProceedsReceived).IsDel = Convert.ToInt32(dr["IsDel"]);
  1062. (t as ProceedsReceived).FID = dr["FID"].ToString();
  1063. break;
  1064. case "ViewDelegationInfoAndForeignReceivables":
  1065. (t as ViewDelegationInfoAndForeignReceivables).DIID = Convert.ToInt32(dr["DIID"]);
  1066. (t as ViewDelegationInfoAndForeignReceivables).TeamName = dr["TeamName"].ToString();
  1067. (t as ViewDelegationInfoAndForeignReceivables).ClientUnit = dr["ClientUnit"].ToString();
  1068. (t as ViewDelegationInfoAndForeignReceivables).VisitDate = dr["VisitDate"].ToString();
  1069. break;
  1070. case "ViewDelegationInfoAndcreditCardPayment":
  1071. (t as ViewDelegationInfoAndcreditCardPayment).DIID = Convert.ToInt32(dr["DIID"]);
  1072. (t as ViewDelegationInfoAndcreditCardPayment).TeamName = dr["TeamName"].ToString();
  1073. (t as ViewDelegationInfoAndcreditCardPayment).ClientUnit = dr["ClientUnit"].ToString();
  1074. (t as ViewDelegationInfoAndcreditCardPayment).VisitDate = dr["VisitDate"].ToString();
  1075. break;
  1076. case "MediaSuppliers":
  1077. (t as MediaSuppliers).Id = Convert.ToInt32(dr["Id"]);
  1078. (t as MediaSuppliers).Did = Convert.ToInt32(dr["Did"]);
  1079. (t as MediaSuppliers).Privince = dr["Privince"].ToString();
  1080. (t as MediaSuppliers).City = dr["City"].ToString();
  1081. (t as MediaSuppliers).Name = dr["Name"].ToString();
  1082. (t as MediaSuppliers).Sex = Convert.ToInt32(dr["Sex"]);
  1083. (t as MediaSuppliers).UnitName = dr["UnitName"].ToString();
  1084. (t as MediaSuppliers).UnitAbbreviation = dr["UnitAbbreviation"].ToString();
  1085. (t as MediaSuppliers).Post = dr["Post"].ToString();
  1086. (t as MediaSuppliers).Tel = dr["Tel"].ToString();
  1087. (t as MediaSuppliers).QQ = dr["QQ"].ToString();
  1088. (t as MediaSuppliers).Email = dr["Email"].ToString();
  1089. (t as MediaSuppliers).Fax = dr["Fax"].ToString();
  1090. (t as MediaSuppliers).Address = dr["Address"].ToString();
  1091. (t as MediaSuppliers).OtherInformation = dr["OtherInformation"].ToString();
  1092. (t as MediaSuppliers).Operators = Convert.ToInt32(dr["Operator"]);
  1093. (t as MediaSuppliers).OperatorsDate = dr["OperatorDate"].ToString();
  1094. (t as MediaSuppliers).IsDel = Convert.ToInt32(dr["IsDel"]);
  1095. break;
  1096. case "Level":
  1097. (t as Level).Id = Convert.ToInt32(dr["Id"]);
  1098. (t as Level).Lid = Convert.ToInt32(dr["Lid"]);
  1099. (t as Level).LName = dr["LName"].ToString();
  1100. (t as Level).Profit = float.Parse(dr["Profit"].ToString());
  1101. (t as Level).Rebate = float.Parse(dr["Rebate"].ToString());
  1102. (t as Level).Tax = float.Parse(dr["Tax"].ToString());
  1103. (t as Level).Did = Convert.ToInt32(dr["Did"]);
  1104. (t as Level).IsDel = Convert.ToInt32(dr["IsDel"]);
  1105. (t as Level).Cid = Convert.ToInt32(dr["Cid"]);
  1106. break;
  1107. case "OfferData":
  1108. (t as OfferData).Id = Convert.ToInt32(dr["Id"]);
  1109. (t as OfferData).PId = Convert.ToInt32(dr["PId"]);
  1110. (t as OfferData).Cid = Convert.ToInt32(dr["Cid"].ToString());
  1111. (t as OfferData).PublishedPrice = decimal.Parse(dr["PublishedPrice"].ToString());
  1112. (t as OfferData).BasePrice = decimal.Parse(dr["BasePrice"].ToString());
  1113. (t as OfferData).AddedTax = decimal.Parse(dr["AddedTax"].ToString());
  1114. (t as OfferData).IsDel = Convert.ToInt32(dr["IsDel"]);
  1115. SetData sd = new SetData();
  1116. if (dr["Name"] != null)
  1117. sd.Name = dr["Name"].ToString();
  1118. (t as OfferData).Sd = sd;
  1119. break;
  1120. case "Offer":
  1121. (t as Offer).Id = Convert.ToInt32(dr["Id"]);
  1122. (t as Offer).Uid = Convert.ToInt32(dr["Uid"]);
  1123. (t as Offer).Projects = dr["Projects"].ToString().ToString();
  1124. (t as Offer).Cid = Convert.ToInt32(dr["Cid"].ToString());
  1125. (t as Offer).Pid = Convert.ToInt32(dr["Pid"].ToString());
  1126. (t as Offer).Discount = decimal.Parse(dr["Discount"].ToString());
  1127. (t as Offer).SalePrice = decimal.Parse(dr["SalePrice"].ToString());
  1128. (t as Offer).Profit = decimal.Parse(dr["Profit"].ToString());
  1129. (t as Offer).Version = Convert.ToInt32(dr["Version"]);
  1130. (t as Offer).IsNew = Convert.ToInt32(dr["IsNew"]);
  1131. (t as Offer).IsDel = Convert.ToInt32(dr["IsDel"]);
  1132. (t as Offer).InputTime = Convert.ToDateTime(dr["InputTime"].ToString());
  1133. (t as Offer).ProCode = dr["ProCode"].ToString();
  1134. break;
  1135. //LiuChengYi 2014/4/16
  1136. //用于报表
  1137. case "reportModel":
  1138. (t as ReportModel).Num = dr["num"].ToString();
  1139. (t as ReportModel).Category = dr["SalesQuoteNo"].ToString();
  1140. (t as ReportModel).Sequence = dr["SalesDate"].ToString();
  1141. break;
  1142. case "BillInfo":
  1143. (t as BillInfo).Id = Convert.ToInt32(dr["Id"]);
  1144. (t as BillInfo).IsDel = Convert.ToInt32(dr["IsDel"]);
  1145. (t as BillInfo).PostDate = dr["PostDate"].ToString();
  1146. (t as BillInfo).Currency = dr["Currency"].ToString();
  1147. (t as BillInfo).Amount = float.Parse(dr["Amount"].ToString());
  1148. (t as BillInfo).TransDate = dr["TransDate"].ToString();
  1149. (t as BillInfo).Description = dr["Description"].ToString();
  1150. break;
  1151. case "OvertimeApplication":
  1152. (t as OvertimeApplication).ID = Convert.ToInt32(dr["Id"]);
  1153. (t as OvertimeApplication).UID = Convert.ToInt32(dr["UID"]);
  1154. (t as OvertimeApplication).OverDate = Convert.ToDateTime(dr["OverDate"].ToString());
  1155. (t as OvertimeApplication).StardTime = dr["StardTime"].ToString();
  1156. (t as OvertimeApplication).EndTime = dr["EndTime"].ToString();
  1157. (t as OvertimeApplication).ObjectiveTime = dr["ObjectiveTime"].ToString();
  1158. (t as OvertimeApplication).SubjectiveTime = dr["SubjectiveTime"].ToString();
  1159. (t as OvertimeApplication).Reason = dr["Reason"].ToString();
  1160. (t as OvertimeApplication).MAudio = Convert.ToInt32(dr["MAudio"].ToString());
  1161. (t as OvertimeApplication).IsAudio = Convert.ToInt32(dr["IsAudio"].ToString());
  1162. (t as OvertimeApplication).AudioMan = dr["AudioMan"].ToString();
  1163. (t as OvertimeApplication).AudioTime = Convert.ToDateTime(dr["AudioTime"].ToString());
  1164. (t as OvertimeApplication).Remark = dr["Remark"].ToString();
  1165. (t as OvertimeApplication).IsDel = Convert.ToInt32(dr["IsDel"].ToString());
  1166. try
  1167. {
  1168. (t as OvertimeApplication).Did = Convert.ToInt32(dr["Did"].ToString());
  1169. }
  1170. catch
  1171. {
  1172. (t as OvertimeApplication).Did = 0;
  1173. }
  1174. (t as OvertimeApplication).OvertimeType = Convert.ToInt32(dr["OvertimeType"].ToString());
  1175. break;
  1176. //LiuChengYi 2014-5-29
  1177. case "PageMsg":
  1178. (t as PageMsg).Id = Convert.ToInt32(dr["Id"]);
  1179. (t as PageMsg).Name = dr["Name"].ToString();
  1180. (t as PageMsg).Url = dr["url"].ToString();
  1181. (t as PageMsg).Img = dr["img"].ToString();
  1182. break;
  1183. case "OtherPriceOP":
  1184. (t as OtherPriceOP).Id = Convert.ToInt32(dr["Id"]);
  1185. (t as OtherPriceOP).DIID = Convert.ToInt32(dr["DIID"]);
  1186. (t as OtherPriceOP).PriceName = dr["PriceName"].ToString();
  1187. (t as OtherPriceOP).Price = float.Parse(dr["Price"].ToString());
  1188. (t as OtherPriceOP).Currency = Convert.ToInt32(dr["Currency"]);
  1189. (t as OtherPriceOP).Remark = dr["Remark"].ToString();
  1190. (t as OtherPriceOP).Operators = Convert.ToInt32(dr["Operator"]);
  1191. (t as OtherPriceOP).OperatorsDate = dr["OperatorDate"].ToString();
  1192. (t as OtherPriceOP).IsDel = Convert.ToInt32(dr["IsDel"]);
  1193. (t as OtherPriceOP).PayType = dr["PayType"].ToString();
  1194. (t as OtherPriceOP).PriceType = Convert.ToInt32(dr["PriceType"]);
  1195. break;
  1196. case "ViewOtherPriceOP":
  1197. (t as ViewOtherPriceOP).PriceName = dr["PriceName"].ToString();
  1198. (t as ViewOtherPriceOP).Price = float.Parse(dr["Price"].ToString());
  1199. (t as ViewOtherPriceOP).Name = dr["Name"].ToString();
  1200. (t as ViewOtherPriceOP).Spread = float.Parse(dr["Spread"].ToString());
  1201. (t as ViewOtherPriceOP).DayRate = dr["DayRate"].ToString();
  1202. (t as ViewOtherPriceOP).Remark = dr["Remark"].ToString();
  1203. (t as ViewOtherPriceOP).IsPay = dr["IsPay"].ToString();
  1204. try
  1205. {
  1206. (t as ViewOtherPriceOP).RMBPrice = float.Parse(dr["RMBPrice"].ToString());
  1207. }
  1208. catch { (t as ViewOtherPriceOP).RMBPrice = 0f; }
  1209. (t as ViewOtherPriceOP).OperatorDate = dr["OperatorDate"].ToString();
  1210. (t as ViewOtherPriceOP).Payee = dr["Payee"].ToString();
  1211. (t as ViewOtherPriceOP).OrbitalPrivateTransfer = dr["OrbitalPrivateTransfer"].ToString();
  1212. (t as ViewOtherPriceOP).PayDid = dr["PayDid"].ToString();
  1213. (t as ViewOtherPriceOP).PaydName = dr["PaydName"].ToString();
  1214. (t as ViewOtherPriceOP).AuditGMDate = dr["AuditGMDate"].ToString();
  1215. (t as ViewOtherPriceOP).Operator = dr["Operator"].ToString();
  1216. (t as ViewOtherPriceOP).IsMatchCreditCard = int.Parse(dr["IsMatchCreditCard"].ToString());
  1217. break;
  1218. case "IpInfo":
  1219. (t as IpInfo).Id = Convert.ToInt32(dr["Id"]);
  1220. (t as IpInfo).StartIp = Convert.ToDecimal(dr["StartIp"]);
  1221. (t as IpInfo).EndIp = Convert.ToDecimal(dr["EndIp"]);
  1222. (t as IpInfo).Country = dr["Country"].ToString();
  1223. (t as IpInfo).City = dr["City"].ToString();
  1224. break;
  1225. case "TeamRate":
  1226. (t as TeamRate).ID = Convert.ToInt32(dr["Id"]);
  1227. (t as TeamRate).Diid = Convert.ToInt32(dr["Diid"]);
  1228. (t as TeamRate).CTable = Convert.ToInt32(dr["CTable"]);
  1229. (t as TeamRate).OPer = string.IsNullOrWhiteSpace(dr["OPer"].ToString()) ? 0 : Convert.ToInt32(dr["OPer"]);
  1230. (t as TeamRate).OPDate = dr["OPDate"].ToString();
  1231. (t as TeamRate).OtherRate = dr["OtherRate"].ToString();
  1232. (t as TeamRate).OtherPrice = dr["OtherPrice"].ToString();
  1233. (t as TeamRate).RateU = dr["RateU"].ToString();
  1234. (t as TeamRate).RateE = dr["RateE"].ToString();
  1235. (t as TeamRate).RateJ = dr["RateJ"].ToString();
  1236. (t as TeamRate).RateH = dr["RateH"].ToString();
  1237. (t as TeamRate).RateN = dr["RateN"].ToString();
  1238. (t as TeamRate).RateS = dr["RateS"].ToString();
  1239. (t as TeamRate).RateA = dr["RateA"].ToString();
  1240. (t as TeamRate).RateC = dr["RateC"].ToString();
  1241. (t as TeamRate).RateT = dr["RateT"].ToString();
  1242. (t as TeamRate).RateBL = dr["RateBL"].ToString();
  1243. (t as TeamRate).RateHB = dr["RateHB"].ToString();
  1244. (t as TeamRate).RateFJD = dr["RateFJD"].ToString();
  1245. (t as TeamRate).RateTL = dr["RateTL"].ToString();
  1246. (t as TeamRate).RateRP = dr["RateRP"].ToString();
  1247. (t as TeamRate).RatePeso = dr["RatePeso"].ToString();
  1248. (t as TeamRate).RateMYR = dr["RateMYR"].ToString();
  1249. (t as TeamRate).RateCZK = dr["RateCZK"].ToString();
  1250. (t as TeamRate).RateMXN = dr["RateMXN"].ToString();
  1251. (t as TeamRate).RateMOP = dr["RateMOP"].ToString();
  1252. (t as TeamRate).RateARS = dr["RateARS"].ToString();
  1253. (t as TeamRate).RateHUF = dr["RateHUF"].ToString();
  1254. (t as TeamRate).RateRUB = dr["RateRUB"].ToString();
  1255. break;
  1256. case "InsuranceCost":
  1257. (t as InsuranceCost).Id = Convert.ToInt32(dr["Id"]);
  1258. (t as InsuranceCost).GName = dr["GName"].ToString();
  1259. (t as InsuranceCost).RechargeCost = Convert.ToInt32(dr["RechargeCost"]);
  1260. (t as InsuranceCost).Remarks = dr["Remarks"].ToString();
  1261. (t as InsuranceCost).Operators = Convert.ToInt32(dr["Operators"]);
  1262. (t as InsuranceCost).OperatorDate = dr["OperatorDate"].ToString();
  1263. (t as InsuranceCost).IsDel = Convert.ToInt32(dr["IsDel"]);
  1264. break;
  1265. case "CustomerVisaInfo":
  1266. (t as CustomerVisaInfo).Id = Convert.ToInt32(dr["Id"]);
  1267. (t as CustomerVisaInfo).DIId = Convert.ToInt32(dr["DIId"]);
  1268. (t as CustomerVisaInfo).Name = dr["Name"].ToString();
  1269. (t as CustomerVisaInfo).Sex = Convert.ToInt32(dr["Sex"]);
  1270. (t as CustomerVisaInfo).PhoneNumber = dr["PhoneNumber"].ToString();
  1271. (t as CustomerVisaInfo).Dirthday = dr["Dirthday"].ToString();
  1272. (t as CustomerVisaInfo).NativePlace = dr["NativePlace"].ToString();
  1273. (t as CustomerVisaInfo).CardId = dr["CardId"].ToString();
  1274. (t as CustomerVisaInfo).PassportNo = dr["PassportNo"].ToString();
  1275. (t as CustomerVisaInfo).PassportsValidity = dr["PassportsValidity"].ToString();
  1276. (t as CustomerVisaInfo).UnitName = dr["UnitName"].ToString();
  1277. (t as CustomerVisaInfo).Post = dr["Post"].ToString();
  1278. (t as CustomerVisaInfo).UnitAddress = dr["UnitAddress"].ToString();
  1279. (t as CustomerVisaInfo).HomeAddress = dr["HomeAddress"].ToString();
  1280. (t as CustomerVisaInfo).FiveYearsAgo = dr["FiveYearsAgo"].ToString();
  1281. (t as CustomerVisaInfo).Operators = Convert.ToInt32(dr["Operators"].ToString());
  1282. (t as CustomerVisaInfo).OperatorDate = dr["OperatorDate"].ToString();
  1283. (t as CustomerVisaInfo).VId = Convert.ToInt32(dr["VId"].ToString());
  1284. (t as CustomerVisaInfo).IsDel = Convert.ToInt32(dr["IsDel"].ToString());
  1285. (t as CustomerVisaInfo).Remark = dr["Remark"].ToString();
  1286. break;
  1287. case "CarCompanyAndTouristGuide":
  1288. (t as CarCompanyAndTouristGuide).Id = Convert.ToInt32(dr["Id"]);
  1289. (t as CarCompanyAndTouristGuide).CGId = Convert.ToInt32(dr["CGId"]);
  1290. (t as CarCompanyAndTouristGuide).CarType = dr["CarType"].ToString();
  1291. (t as CarCompanyAndTouristGuide).Price = float.Parse(dr["Price"].ToString());
  1292. (t as CarCompanyAndTouristGuide).Unit = dr["Unit"].ToString();
  1293. (t as CarCompanyAndTouristGuide).CompanyOrGuide = Convert.ToInt32(dr["CompanyOrGuide"]);
  1294. (t as CarCompanyAndTouristGuide).Operators = Convert.ToInt32(dr["Operators"]);
  1295. (t as CarCompanyAndTouristGuide).OperatorDate = dr["OperatorDate"].ToString();
  1296. (t as CarCompanyAndTouristGuide).Remark = dr["Remark"].ToString();
  1297. (t as CarCompanyAndTouristGuide).Currency = dr["Currency"].ToString();
  1298. (t as CarCompanyAndTouristGuide).IsDel = Convert.ToInt32(dr["IsDel"]);
  1299. break;
  1300. case "ViewCarDataAndGuide":
  1301. (t as ViewCarDataAndGuide).Id = Convert.ToInt32(dr["Id"]);
  1302. (t as ViewCarDataAndGuide).UnitArea = dr["UnitArea"].ToString();
  1303. (t as ViewCarDataAndGuide).UnitName = dr["UnitName"].ToString();
  1304. (t as ViewCarDataAndGuide).Contact = dr["Contact"].ToString();
  1305. (t as ViewCarDataAndGuide).Tel = dr["Tel"].ToString();
  1306. (t as ViewCarDataAndGuide).Score = Convert.ToInt32(dr["Score"]);
  1307. (t as ViewCarDataAndGuide).OperatorsDate = dr["OperatorDate"].ToString();
  1308. (t as ViewCarDataAndGuide).Price = float.Parse(dr["Price"].ToString());
  1309. (t as ViewCarDataAndGuide).Currency = dr["Currency"].ToString();
  1310. break;
  1311. case "Ticket":
  1312. (t as Ticket).Id = Convert.ToInt32(dr["Id"]);
  1313. (t as Ticket).Country = dr["Country"].ToString();
  1314. (t as Ticket).Area = dr["Area"].ToString();
  1315. (t as Ticket).ScenicSpot = dr["ScenicSpot"].ToString();
  1316. (t as Ticket).Address = dr["Address"].ToString();
  1317. (t as Ticket).Contact = dr["Contact"].ToString();
  1318. (t as Ticket).Price = float.Parse(dr["Price"].ToString());
  1319. (t as Ticket).Currency = Convert.ToInt32(dr["Currency"]);
  1320. (t as Ticket).Star = Convert.ToInt32(dr["Star"]);
  1321. (t as Ticket).StartDate = dr["StartDate"].ToString();
  1322. (t as Ticket).Remark = dr["Remark"].ToString();
  1323. (t as Ticket).IsDel = Convert.ToInt32(dr["IsDel"]);
  1324. break;
  1325. case "MonthKpiItem":
  1326. (t as MonthKpiItem).Id = Convert.ToInt32(dr["Id"]);
  1327. (t as MonthKpiItem).ProId = dr["ProId"].ToString();
  1328. (t as MonthKpiItem).Pro = dr["Pro"].ToString();
  1329. (t as MonthKpiItem).ItemId = dr["ItemId"].ToString();
  1330. (t as MonthKpiItem).Item = dr["Item"].ToString();
  1331. (t as MonthKpiItem).Rank = dr["Rank"].ToString();
  1332. (t as MonthKpiItem).Weight = dr["Weight"].ToString();
  1333. (t as MonthKpiItem).IsDel = Convert.ToInt32(dr["IsDel"]);
  1334. break;
  1335. case "MonthKpiItemMark":
  1336. (t as MonthKpiItemMark).Id = Convert.ToInt32(dr["Id"]);
  1337. (t as MonthKpiItemMark).KpiItemId = Convert.ToInt32(dr["KpiItemId"]);
  1338. (t as MonthKpiItemMark).Score = float.Parse(dr["Score"].ToString());
  1339. (t as MonthKpiItemMark).IsDel = Convert.ToInt32(dr["IsDel"]);
  1340. break;
  1341. case "MonthKpiItemScore":
  1342. (t as MonthKpiItemScore).Id = Convert.ToInt32(dr["Id"]);
  1343. (t as MonthKpiItemScore).Uid = Convert.ToInt32(dr["Uid"]);
  1344. (t as MonthKpiItemScore).YearMonth = dr["YearMonth"].ToString();
  1345. (t as MonthKpiItemScore).ItemId = dr["ItemId"].ToString();
  1346. (t as MonthKpiItemScore).ItemLeaderScore = float.Parse(dr["ItemLeaderScore"].ToString());
  1347. (t as MonthKpiItemScore).ItemManaScore = float.Parse(dr["ItemManaScore"].ToString());
  1348. (t as MonthKpiItemScore).ItemEmployScore = float.Parse(dr["ItemEmployScore"].ToString());
  1349. (t as MonthKpiItemScore).IsDel = Convert.ToInt32(dr["IsDel"]);
  1350. break;
  1351. case "DeleOverView":
  1352. (t as DeleOverView).Id = Convert.ToInt32(dr["Id"]);
  1353. (t as DeleOverView).Diid = Convert.ToInt32(dr["Diid"]);
  1354. (t as DeleOverView).BaoPi = dr["BaoPi"].ToString();
  1355. (t as DeleOverView).GongWu = dr["GongWu"].ToString();
  1356. (t as DeleOverView).JiPiao = dr["JiPiao"].ToString();
  1357. (t as DeleOverView).JiuDian = dr["JiuDian"].ToString();
  1358. (t as DeleOverView).DiJie = dr["DiJie"].ToString();
  1359. (t as DeleOverView).Oper = dr["Oper"].ToString();
  1360. (t as DeleOverView).OpTime = dr["OpTime"].ToString();
  1361. (t as DeleOverView).IsDel = Convert.ToInt32(dr["IsDel"]);
  1362. break;
  1363. case "DeleFile":
  1364. (t as DeleFile).Id = Convert.ToInt32(dr["Id"]);
  1365. (t as DeleFile).Diid = Convert.ToInt32(dr["Diid"]);
  1366. (t as DeleFile).Category = dr["Category"].ToString();
  1367. (t as DeleFile).Kind = Convert.ToInt32(dr["Kind"]);
  1368. (t as DeleFile).FileName = dr["FileName"].ToString();
  1369. (t as DeleFile).FilePath = dr["FilePath"].ToString();
  1370. (t as DeleFile).Oper = dr["Oper"].ToString();
  1371. (t as DeleFile).OpTime = dr["OpTime"].ToString();
  1372. (t as DeleFile).IsDel = Convert.ToInt32(dr["IsDel"]);
  1373. break;
  1374. case "NewClientData":
  1375. (t as NewClientData).ID = Convert.ToInt32(dr["Id"]);
  1376. (t as NewClientData).Number = Convert.ToInt32(dr["Number"]);
  1377. (t as NewClientData).Lvl = dr["Lvl"].ToString();
  1378. (t as NewClientData).Client = dr["Client"].ToString();
  1379. (t as NewClientData).Weight = dr["Weight"].ToString();
  1380. (t as NewClientData).ClientShort = dr["ClientShort"].ToString();
  1381. (t as NewClientData).Contact = dr["Contact"].ToString();
  1382. (t as NewClientData).Gender = dr["Gender"].ToString();
  1383. (t as NewClientData).Passport = dr["Passport"].ToString();
  1384. (t as NewClientData).PassportDate = dr["PassportDate"].ToString();
  1385. (t as NewClientData).Job = dr["Job"].ToString();
  1386. (t as NewClientData).TelePhone = dr["TelePhone"].ToString();
  1387. (t as NewClientData).Phone = dr["Phone"].ToString();
  1388. (t as NewClientData).Email = dr["Email"].ToString();
  1389. (t as NewClientData).Location = dr["Location"].ToString();
  1390. (t as NewClientData).Address = dr["Address"].ToString();
  1391. (t as NewClientData).Birthday = dr["Birthday"].ToString();
  1392. (t as NewClientData).OtherInfo = dr["OtherInfo"].ToString();
  1393. (t as NewClientData).Ascription = dr["Ascription"].ToString();
  1394. (t as NewClientData).Remarks = dr["Remarks"].ToString();
  1395. (t as NewClientData).FZR = dr["FZR"].ToString();
  1396. (t as NewClientData).WeChat = dr["WeChat"].ToString();
  1397. (t as NewClientData).Category = dr["Category"].ToString();
  1398. (t as NewClientData).PreDele = dr["PreDele"].ToString();
  1399. (t as NewClientData).FinlishedDele = dr["FinlishedDele"].ToString();
  1400. (t as NewClientData).OPer = dr["OPer"].ToString();
  1401. (t as NewClientData).OPdate = dr["OPdate"].ToString();
  1402. (t as NewClientData).IsDel = Convert.ToInt32(dr["IsDel"]);
  1403. break;
  1404. case "GroupCost":
  1405. (t as GroupCost).Id = Convert.ToInt32(dr["Id"]);
  1406. (t as GroupCost).Diid = Convert.ToInt32(dr["Diid"]);
  1407. (t as GroupCost).DAY = dr["DAY"].ToString();
  1408. (t as GroupCost).Date = dr["Date"].ToString();
  1409. (t as GroupCost).ITIN = dr["ITIN"].ToString();
  1410. (t as GroupCost).CarType = dr["CarType"].ToString();
  1411. (t as GroupCost).CarTiming = float.Parse(dr["CarTiming"].ToString());
  1412. (t as GroupCost).CarNumber = float.Parse(dr["CarNumber"].ToString());
  1413. (t as GroupCost).CarCost = float.Parse(dr["CarCost"].ToString());
  1414. (t as GroupCost).TGS = float.Parse(dr["TGS"].ToString());
  1415. (t as GroupCost).TGWH = float.Parse(dr["TGWH"].ToString());
  1416. (t as GroupCost).TGN = float.Parse(dr["TGN"].ToString());
  1417. (t as GroupCost).TGOF = float.Parse(dr["TGOF"].ToString());
  1418. (t as GroupCost).TGM = float.Parse(dr["TGM"].ToString());
  1419. (t as GroupCost).TGA = float.Parse(dr["TGA"].ToString());
  1420. (t as GroupCost).TGTF = float.Parse(dr["TGTF"].ToString());
  1421. (t as GroupCost).TGEF = float.Parse(dr["TGEF"].ToString());
  1422. (t as GroupCost).CFS = float.Parse(dr["CFS"].ToString());
  1423. (t as GroupCost).CFM = float.Parse(dr["CFM"].ToString());
  1424. (t as GroupCost).CFOF = float.Parse(dr["CFOF"].ToString());
  1425. (t as GroupCost).B = float.Parse(dr["B"].ToString());
  1426. (t as GroupCost).L = float.Parse(dr["L"].ToString());
  1427. (t as GroupCost).D = float.Parse(dr["D"].ToString());
  1428. (t as GroupCost).TBR = float.Parse(dr["TBR"].ToString());
  1429. (t as GroupCost).SGR = float.Parse(dr["SGR"].ToString());
  1430. (t as GroupCost).JS_ES = float.Parse(dr["JS_ES"].ToString());
  1431. (t as GroupCost).Suite = float.Parse(dr["Suite"].ToString());
  1432. (t as GroupCost).ACCON = dr["ACCON"].ToString();
  1433. (t as GroupCost).TV = float.Parse(dr["TV"].ToString());
  1434. (t as GroupCost).iL = float.Parse(dr["IL"].ToString());
  1435. (t as GroupCost).IF = float.Parse(dr["IF"].ToString());
  1436. (t as GroupCost).EF = float.Parse(dr["EF"].ToString());
  1437. (t as GroupCost).B_R_F = float.Parse(dr["B_R_F"].ToString());
  1438. (t as GroupCost).TE = float.Parse(dr["TE"].ToString());
  1439. (t as GroupCost).TGTips = float.Parse(dr["TGTips"].ToString());
  1440. (t as GroupCost).DRVTips = float.Parse(dr["DRVTips"].ToString());
  1441. (t as GroupCost).PC = float.Parse(dr["PC"].ToString());
  1442. (t as GroupCost).TLF = float.Parse(dr["TLF"].ToString());
  1443. (t as GroupCost).ECT = float.Parse(dr["ECT"].ToString());
  1444. (t as GroupCost).Oper = Convert.ToInt32(dr["Oper"]);
  1445. (t as GroupCost).OpTime = dr["OpTime"].ToString();
  1446. (t as GroupCost).Isdel = Convert.ToInt32(dr["Isdel"]);
  1447. break;
  1448. case "CarGuideData_US":
  1449. (t as CarGuideData_US).Id = Convert.ToInt32(dr["Id"]);
  1450. (t as CarGuideData_US).Area = dr["Area"].ToString();
  1451. (t as CarGuideData_US).ServiceType = dr["ServiceType"].ToString();
  1452. (t as CarGuideData_US).CarType = dr["CarType"].ToString();
  1453. (t as CarGuideData_US).IsHighTop = dr["IsHighTop"].ToString();
  1454. (t as CarGuideData_US).CarCost = dr["CarCost"].ToString();
  1455. (t as CarGuideData_US).GuideCost = dr["GuideCost"].ToString();
  1456. (t as CarGuideData_US).WorkTime = dr["WorkTime"].ToString();
  1457. (t as CarGuideData_US).CarOverTimeCost = dr["CarOverTimeCost"].ToString();
  1458. (t as CarGuideData_US).GuideOverTimeCost = dr["GuideOverTimeCost"].ToString();
  1459. (t as CarGuideData_US).Remark = dr["Remark"].ToString();
  1460. (t as CarGuideData_US).Isdel = Convert.ToInt32(dr["Isdel"]);
  1461. break;
  1462. case "CarGuideData_SA":
  1463. (t as CarGuideData_SA).Id = Convert.ToInt32(dr["Id"]);
  1464. (t as CarGuideData_SA).Area = dr["Area"].ToString();
  1465. (t as CarGuideData_SA).ServiceType = dr["ServiceType"].ToString();
  1466. (t as CarGuideData_SA).CarType = dr["CarType"].ToString();
  1467. (t as CarGuideData_SA).Tip = dr["Tip"].ToString();
  1468. (t as CarGuideData_SA).CarCost = dr["CarCost"].ToString();
  1469. (t as CarGuideData_SA).GuideCost = dr["GuideCost"].ToString();
  1470. (t as CarGuideData_SA).CarWorkTime = dr["CarWorkTime"].ToString();
  1471. (t as CarGuideData_SA).CarOverTimeCost = dr["CarOverTimeCost"].ToString();
  1472. (t as CarGuideData_SA).Remark = dr["Remark"].ToString();
  1473. (t as CarGuideData_SA).Isdel = Convert.ToInt32(dr["Isdel"]);
  1474. break;
  1475. case "CarGuideData_EU":
  1476. (t as CarGuideData_EU).Id = Convert.ToInt32(dr["Id"]);
  1477. (t as CarGuideData_EU).Country = dr["Country"].ToString();
  1478. (t as CarGuideData_EU).Area = dr["Area"].ToString();
  1479. (t as CarGuideData_EU).CarType = dr["CarType"].ToString();
  1480. (t as CarGuideData_EU).CarCost = dr["CarCost"].ToString();
  1481. (t as CarGuideData_EU).CarAirTran = dr["CarAirTran"].ToString();
  1482. (t as CarGuideData_EU).DriverTip = dr["DriverTip"].ToString();
  1483. (t as CarGuideData_EU).GuideCost = dr["GuideCost"].ToString();
  1484. (t as CarGuideData_EU).GuideTip = dr["GuideTip"].ToString();
  1485. (t as CarGuideData_EU).GuideAirTran = dr["GuideAirTran"].ToString();
  1486. (t as CarGuideData_EU).Meal = dr["Meal"].ToString();
  1487. (t as CarGuideData_EU).WorkTime = dr["WorkTime"].ToString();
  1488. (t as CarGuideData_EU).OverTimeCost = dr["OverTimeCost"].ToString();
  1489. (t as CarGuideData_EU).Remark = dr["Remark"].ToString();
  1490. (t as CarGuideData_EU).Isdel = Convert.ToInt32(dr["Isdel"]);
  1491. break;
  1492. case "GroupCostParameter":
  1493. (t as GroupCostParameter).Id = Convert.ToInt32(dr["Id"]);
  1494. (t as GroupCostParameter).Diid = Convert.ToInt32(dr["Diid"]);
  1495. (t as GroupCostParameter).Currency = dr["Currency"].ToString();
  1496. (t as GroupCostParameter).Rate = float.Parse(dr["Rate"].ToString());
  1497. (t as GroupCostParameter).Tax = float.Parse(dr["Tax"].ToString());
  1498. (t as GroupCostParameter).FFYS = float.Parse(dr["FFYS"].ToString());
  1499. (t as GroupCostParameter).HotelXS = float.Parse(dr["HotelXS"].ToString());
  1500. (t as GroupCostParameter).JJCCB = float.Parse(dr["JJCCB"].ToString());
  1501. (t as GroupCostParameter).JJCXS = float.Parse(dr["JJCXS"].ToString());
  1502. (t as GroupCostParameter).JJCRS = Convert.ToInt32(dr["JJCRS"].ToString());
  1503. (t as GroupCostParameter).GWCCB = float.Parse(dr["GWCCB"].ToString());
  1504. (t as GroupCostParameter).GWCXS = float.Parse(dr["GWCXS"].ToString());
  1505. (t as GroupCostParameter).GWCRS = Convert.ToInt32(dr["GWCRS"].ToString());
  1506. (t as GroupCostParameter).HCPCB = float.Parse(dr["HCPCB"].ToString());
  1507. (t as GroupCostParameter).HCPRS = Convert.ToInt32(dr["HCPRS"].ToString());
  1508. (t as GroupCostParameter).HCPXS = float.Parse(dr["HCPXS"].ToString());
  1509. (t as GroupCostParameter).CPCB = float.Parse(dr["CPCB"].ToString());
  1510. (t as GroupCostParameter).CPRS = Convert.ToInt32(dr["CPRS"].ToString());
  1511. (t as GroupCostParameter).CPXS = float.Parse(dr["CPXS"].ToString());
  1512. (t as GroupCostParameter).BXCB = string.IsNullOrWhiteSpace(dr["BXCB"].ToString()) ? 0.00f : float.Parse(dr["BXCB"].ToString()) ;
  1513. (t as GroupCostParameter).BXRS = string.IsNullOrWhiteSpace(dr["BXRS"].ToString()) ? 0 : Convert.ToInt32(dr["BXRS"].ToString());
  1514. (t as GroupCostParameter).BXXS = string.IsNullOrWhiteSpace(dr["BXXS"].ToString()) ? 0.00f : float.Parse(dr["BXXS"].ToString());
  1515. (t as GroupCostParameter).HSCB = string.IsNullOrWhiteSpace(dr["HSCB"].ToString()) ? 0.00f : float.Parse(dr["HSCB"].ToString());
  1516. (t as GroupCostParameter).HSRS = Convert.ToInt32(dr["HSRS"].ToString());
  1517. (t as GroupCostParameter).HSXS = float.Parse(dr["HSXS"].ToString());
  1518. (t as GroupCostParameter).VisaCB = float.Parse(dr["VisaCB"].ToString());
  1519. (t as GroupCostParameter).VisaXS = float.Parse(dr["VisaXS"].ToString());
  1520. (t as GroupCostParameter).VisaRS = Convert.ToInt32(dr["VisaRS"].ToString());
  1521. (t as GroupCostParameter).GWCB = float.Parse(dr["GWCB"].ToString());
  1522. (t as GroupCostParameter).GWXS = float.Parse(dr["GWXS"].ToString());
  1523. (t as GroupCostParameter).GWRS = Convert.ToInt32(dr["GWRS"].ToString());
  1524. (t as GroupCostParameter).DJCB = float.Parse(dr["DJCB"].ToString());
  1525. (t as GroupCostParameter).DJXS = float.Parse(dr["DJXS"].ToString());
  1526. (t as GroupCostParameter).LYJCB = float.Parse(dr["LYJCB"].ToString());
  1527. (t as GroupCostParameter).LYJXS = float.Parse(dr["LYJXS"].ToString());
  1528. (t as GroupCostParameter).LYJRS = Convert.ToInt32(dr["LYJRS"].ToString());
  1529. (t as GroupCostParameter).SGRCB = float.Parse(dr["SGRCB"].ToString());
  1530. (t as GroupCostParameter).SGRNumber = Convert.ToInt32(dr["SGRNumber"].ToString());
  1531. (t as GroupCostParameter).SGRXS = float.Parse(dr["SGRXS"].ToString());
  1532. (t as GroupCostParameter).TBRCB = float.Parse(dr["TBRCB"].ToString());
  1533. (t as GroupCostParameter).TBRNumber = Convert.ToInt32(dr["TBRNumber"].ToString());
  1534. (t as GroupCostParameter).TBRXS = float.Parse(dr["TBRXS"].ToString());
  1535. (t as GroupCostParameter).JSESCB = float.Parse(dr["JSESCB"].ToString());
  1536. (t as GroupCostParameter).JSESNumber = Convert.ToInt32(dr["JSESNumber"].ToString());
  1537. (t as GroupCostParameter).JSESXS = float.Parse(dr["JSESXS"].ToString());
  1538. (t as GroupCostParameter).SUITECB = float.Parse(dr["SUITECB"].ToString());
  1539. (t as GroupCostParameter).SUITENumber = Convert.ToInt32(dr["SUITENumber"].ToString());
  1540. (t as GroupCostParameter).SUITEXS = float.Parse(dr["SUITEXS"].ToString());
  1541. (t as GroupCostParameter).IsShare = Convert.ToInt32(dr["IsShare"].ToString());
  1542. (t as GroupCostParameter).Oper = Convert.ToInt32(dr["Oper"].ToString());
  1543. (t as GroupCostParameter).OpTime = dr["OpTime"].ToString();
  1544. (t as GroupCostParameter).CostType = string.IsNullOrWhiteSpace(dr["CostType"].ToString()) ? "A" : dr["CostType"].ToString();
  1545. (t as GroupCostParameter).AstartTime = string.IsNullOrWhiteSpace(dr["AstartTime"].ToString()) ? "" : dr["AstartTime"].ToString();
  1546. (t as GroupCostParameter).AendTime = string.IsNullOrWhiteSpace(dr["AendTime"].ToString()) ? "" : dr["AendTime"].ToString();
  1547. (t as GroupCostParameter).Anumber = string.IsNullOrWhiteSpace(dr["Anumber"].ToString()) ? 0 : int.Parse(dr["Anumber"].ToString());
  1548. (t as GroupCostParameter).BstartTime = string.IsNullOrWhiteSpace(dr["BstartTime"].ToString()) ? "" : dr["BstartTime"].ToString();
  1549. (t as GroupCostParameter).BendTime = string.IsNullOrWhiteSpace(dr["BendTime"].ToString()) ? "" : dr["BendTime"].ToString();
  1550. (t as GroupCostParameter).Bnumber = string.IsNullOrWhiteSpace(dr["Bnumber"].ToString()) ? 0 : int.Parse(dr["Bnumber"].ToString());
  1551. break;
  1552. case "ThreeCode":
  1553. (t as ThreeCode).Id = Convert.ToInt32(dr["Id"]);
  1554. (t as ThreeCode).Three = dr["Three"].ToString();
  1555. (t as ThreeCode).Four = dr["Four"].ToString();
  1556. (t as ThreeCode).Country = dr["Country"].ToString();
  1557. (t as ThreeCode).City = dr["City"].ToString();
  1558. (t as ThreeCode).AirPort = dr["AirPort"].ToString();
  1559. (t as ThreeCode).AirPort_En = dr["AirPort_En"].ToString();
  1560. (t as ThreeCode).OPer = dr["OPer"].ToString();
  1561. (t as ThreeCode).OPDate = dr["OPDate"].ToString();
  1562. (t as ThreeCode).Isdel = Convert.ToInt32(dr["Isdel"]);
  1563. break;
  1564. case "AirCompany":
  1565. (t as AirCompany).Id = Convert.ToInt32(dr["Id"]);
  1566. (t as AirCompany).ShortCode = dr["ShortCode"].ToString();
  1567. (t as AirCompany).CnName = dr["CnName"].ToString();
  1568. (t as AirCompany).EnName = dr["EnName"].ToString();
  1569. (t as AirCompany).OPer = dr["OPer"].ToString();
  1570. (t as AirCompany).OPDate = dr["OPDate"].ToString();
  1571. (t as AirCompany).Isdel = Convert.ToInt32(dr["Isdel"]);
  1572. break;
  1573. case "OfficalActivities":
  1574. (t as OfficialActivities).Id = Convert.ToInt32(dr["Id"]);
  1575. (t as OfficialActivities).Diid = Convert.ToInt32(dr["Diid"]);
  1576. (t as OfficialActivities).Dovid = Convert.ToInt32(dr["Dovid"]);
  1577. (t as OfficialActivities).Client = dr["Client"].ToString();
  1578. (t as OfficialActivities).Date = dr["Date"].ToString();
  1579. (t as OfficialActivities).Time = dr["Time"].ToString();
  1580. (t as OfficialActivities).Address = dr["Address"].ToString();
  1581. (t as OfficialActivities).Job = dr["Job"].ToString();
  1582. (t as OfficialActivities).Contact = dr["Contact"].ToString();
  1583. (t as OfficialActivities).Tel = dr["Tel"].ToString();
  1584. (t as OfficialActivities).Form = dr["Form"].ToString();
  1585. (t as OfficialActivities).Setting = dr["Setting"].ToString();
  1586. (t as OfficialActivities).Dresscode = dr["Dresscode"].ToString();
  1587. (t as OfficialActivities).Attendees = dr["Attendees"].ToString();
  1588. (t as OfficialActivities).IsNeedTrans = dr["IsNeedTrans"].ToString();
  1589. (t as OfficialActivities).Translators = dr["Translators"].ToString();
  1590. (t as OfficialActivities).Language = dr["Language"].ToString();
  1591. (t as OfficialActivities).Trip = dr["Trip"].ToString();
  1592. (t as OfficialActivities).Oper = Convert.ToInt32(dr["Oper"]);
  1593. (t as OfficialActivities).OpDate = dr["OpDate"].ToString();
  1594. (t as OfficialActivities).Isdel = Convert.ToInt32(dr["Isdel"]);
  1595. (t as OfficialActivities).Type = Convert.ToInt32(dr["Type"]);
  1596. (t as OfficialActivities).IsSubmitApproval = Convert.ToInt32(dr["IsSubmitApproval"]);
  1597. (t as OfficialActivities).IsPay = Convert.ToInt32(dr["IsPay"]);
  1598. break;
  1599. case "AskData":
  1600. (t as AskData).Id = Convert.ToInt32(dr["Id"]);
  1601. (t as AskData).Diid = Convert.ToInt32(dr["Diid"]);
  1602. (t as AskData).DeleName = dr["DeleName"].ToString();
  1603. (t as AskData).Country = dr["Country"].ToString();
  1604. (t as AskData).Area = dr["Area"].ToString();
  1605. (t as AskData).UnitName = dr["UnitName"].ToString();
  1606. (t as AskData).Field = dr["Field"].ToString();
  1607. (t as AskData).TalkCase = dr["TalkCase"].ToString();
  1608. (t as AskData).Oper = Convert.ToInt32(dr["Oper"]);
  1609. (t as AskData).OpDate = dr["OpDate"].ToString();
  1610. (t as AskData).Isdel = Convert.ToInt32(dr["Isdel"]);
  1611. break;
  1612. case "VisaFile":
  1613. (t as VisaFile).Id = Convert.ToInt32(dr["Id"]);
  1614. (t as VisaFile).Continent = dr["Continent"].ToString();
  1615. (t as VisaFile).Country = dr["Country"].ToString();
  1616. (t as VisaFile).Category = dr["Category"].ToString();
  1617. (t as VisaFile).FileName = dr["FileName"].ToString();
  1618. (t as VisaFile).FilePath = dr["FilePath"].ToString();
  1619. (t as VisaFile).Oper = Convert.ToInt32(dr["Oper"]);
  1620. (t as VisaFile).OpDate = dr["OpDate"].ToString();
  1621. (t as VisaFile).Isdel = Convert.ToInt32(dr["Isdel"]);
  1622. break;
  1623. case "VisaCustomer":
  1624. (t as VisaCustomer).Id = Convert.ToInt32(dr["Id"]);
  1625. (t as VisaCustomer).Diid = Convert.ToInt32(dr["Diid"]);
  1626. (t as VisaCustomer).Type = Convert.ToInt32(dr["Type"]);
  1627. (t as VisaCustomer).LastName = dr["LastName"].ToString();
  1628. (t as VisaCustomer).FirstName = dr["FirstName"].ToString();
  1629. (t as VisaCustomer).OldName = dr["OldName"].ToString();
  1630. (t as VisaCustomer).Marriage = dr["Marriage"].ToString();
  1631. (t as VisaCustomer).Phone = dr["Phone"].ToString();
  1632. (t as VisaCustomer).BirthCity = dr["BirthCity"].ToString();
  1633. (t as VisaCustomer).BirthProvince = dr["BirthProvince"].ToString();
  1634. (t as VisaCustomer).BirthDay = dr["BirthDay"].ToString();
  1635. (t as VisaCustomer).Tel = dr["Tel"].ToString();
  1636. (t as VisaCustomer).Email = dr["Email"].ToString();
  1637. (t as VisaCustomer).IdCard = dr["IdCard"].ToString();
  1638. (t as VisaCustomer).IdStartDate = dr["IdStartDate"].ToString();
  1639. (t as VisaCustomer).IdEndDate = dr["IdEndDate"].ToString();
  1640. (t as VisaCustomer).IdCardAddress = dr["IdCardAddress"].ToString();
  1641. (t as VisaCustomer).Address = dr["Address"].ToString();
  1642. (t as VisaCustomer).HighestEducation = dr["HighestEducation"].ToString();
  1643. (t as VisaCustomer).PostCodes = dr["PostCodes"].ToString();
  1644. (t as VisaCustomer).Client = dr["Client"].ToString();
  1645. (t as VisaCustomer).ClientAddress = dr["ClientAddress"].ToString();
  1646. (t as VisaCustomer).ClientPostCodes = dr["ClientPostCodes"].ToString();
  1647. (t as VisaCustomer).Job = dr["Job"].ToString();
  1648. (t as VisaCustomer).WorkDate = dr["WorkDate"].ToString();
  1649. (t as VisaCustomer).Wage = dr["Wage"].ToString();
  1650. (t as VisaCustomer).ClientPhone = dr["ClientPhone"].ToString();
  1651. (t as VisaCustomer).ClientFax = dr["ClientFax"].ToString();
  1652. (t as VisaCustomer).ClientEmail = dr["ClientEmail"].ToString();
  1653. (t as VisaCustomer).ClientLeader = dr["ClientLeader"].ToString();
  1654. (t as VisaCustomer).ClientLeaderJob = dr["ClientLeaderJob"].ToString();
  1655. (t as VisaCustomer).WorkState = dr["WorkState"].ToString();
  1656. (t as VisaCustomer).IsGetSchengen = dr["IsGetSchengen"].ToString();
  1657. (t as VisaCustomer).StartTime = dr["StartTime"].ToString();
  1658. (t as VisaCustomer).EndTime = dr["EndTime"].ToString();
  1659. (t as VisaCustomer).IsFinger = dr["IsFinger"].ToString();
  1660. (t as VisaCustomer).FingerDate = dr["FingerDate"].ToString();
  1661. (t as VisaCustomer).CostBearers = dr["CostBearers"].ToString();
  1662. (t as VisaCustomer).TableOpName = dr["TableOpName"].ToString();
  1663. (t as VisaCustomer).TableOpTel = dr["TableOpTel"].ToString();
  1664. (t as VisaCustomer).TableDate = dr["TableDate"].ToString();
  1665. (t as VisaCustomer).Party = dr["Party"].ToString();
  1666. (t as VisaCustomer).Nationality = dr["Nationality"].ToString();
  1667. (t as VisaCustomer).Sex = dr["Sex"].ToString();
  1668. (t as VisaCustomer).WeddingDate = dr["WeddingDate"].ToString();
  1669. (t as VisaCustomer).DivorceDate = dr["DivorceDate"].ToString();
  1670. (t as VisaCustomer).MateName = dr["MateName"].ToString();
  1671. (t as VisaCustomer).MateBirthDay = dr["MateBirthDay"].ToString();
  1672. (t as VisaCustomer).MateBirthCity = dr["MateBirthCity"].ToString();
  1673. (t as VisaCustomer).MateBirthCountry = dr["MateBirthCountry"].ToString();
  1674. (t as VisaCustomer).MateAddress = dr["MateAddress"].ToString();
  1675. (t as VisaCustomer).MateClient = dr["MateClient"].ToString();
  1676. (t as VisaCustomer).MateClientAddress = dr["MateClientAddress"].ToString();
  1677. (t as VisaCustomer).MateJob = dr["MateJob"].ToString();
  1678. (t as VisaCustomer).VisitCountry = dr["VisitCountry"].ToString();
  1679. (t as VisaCustomer).Paper = dr["Paper"].ToString();
  1680. (t as VisaCustomer).Papent = dr["Papent"].ToString();
  1681. (t as VisaCustomer).PhD = dr["PhD"].ToString();
  1682. (t as VisaCustomer).IsVisitUC = dr["IsVisitUC"].ToString();
  1683. (t as VisaCustomer).USADate = dr["USADate"].ToString();
  1684. (t as VisaCustomer).USADays = dr["USADays"].ToString();
  1685. (t as VisaCustomer).CanDate = dr["CanDate"].ToString();
  1686. (t as VisaCustomer).CanDays = dr["CanDays"].ToString();
  1687. (t as VisaCustomer).IsUSAVia = dr["IsUSAVia"].ToString();
  1688. (t as VisaCustomer).GetUSAVisaDate = dr["GetUSAVisaDate"].ToString();
  1689. (t as VisaCustomer).GetUPPlace = dr["GetUPPlace"].ToString();
  1690. (t as VisaCustomer).USAVisaCate = dr["USAVisaCate"].ToString();
  1691. (t as VisaCustomer).USAVisaCode = dr["USAVisaCode"].ToString();
  1692. (t as VisaCustomer).USAFinger = dr["USAFinger"].ToString();
  1693. (t as VisaCustomer).IsRejected = dr["IsRejected"].ToString();
  1694. (t as VisaCustomer).RejectedDate = dr["RejectedDate"].ToString();
  1695. (t as VisaCustomer).RejectedPlace = dr["RejectedPlace"].ToString();
  1696. (t as VisaCustomer).RejectedVisa = dr["RejectedVisa"].ToString();
  1697. (t as VisaCustomer).IsRevoke = dr["IsRevoke"].ToString();
  1698. (t as VisaCustomer).IsLose = dr["IsLose"].ToString();
  1699. (t as VisaCustomer).LoseDate = dr["LoseDate"].ToString();
  1700. (t as VisaCustomer).LoseCode = dr["LoseCode"].ToString();
  1701. (t as VisaCustomer).IsUSAVisa = dr["IsUSAVisa"].ToString();
  1702. (t as VisaCustomer).MateUSA = dr["MateUSA"].ToString();
  1703. (t as VisaCustomer).MateIden = dr["MateIden"].ToString();
  1704. (t as VisaCustomer).WHUSA = dr["WHUSA"].ToString();
  1705. (t as VisaCustomer).WHIden = dr["WHIden"].ToString();
  1706. (t as VisaCustomer).ParentUSA = dr["ParentUSA"].ToString();
  1707. (t as VisaCustomer).ParentIden = dr["ParentIden"].ToString();
  1708. (t as VisaCustomer).ChildUSA = dr["ChildUSA"].ToString();
  1709. (t as VisaCustomer).ChildIden = dr["ChildIden"].ToString();
  1710. (t as VisaCustomer).BroUSA = dr["BroUSA"].ToString();
  1711. (t as VisaCustomer).BroIden = dr["BroIden"].ToString();
  1712. (t as VisaCustomer).Social = dr["Social"].ToString();
  1713. (t as VisaCustomer).IsArmy = dr["IsArmy"].ToString();
  1714. (t as VisaCustomer).ArmyState = dr["ArmyState"].ToString();
  1715. (t as VisaCustomer).ApplyDate = dr["ApplyDate"].ToString();
  1716. (t as VisaCustomer).Oper = Convert.ToInt32(dr["Oper"]);
  1717. (t as VisaCustomer).OpDate = dr["OpDate"].ToString();
  1718. (t as VisaCustomer).passportNumber = dr["passportNumber"].ToString(); //护照号
  1719. (t as VisaCustomer).Isdel = Convert.ToInt32(dr["Isdel"]); ;
  1720. break;
  1721. case "VisaCustomerCompany":
  1722. (t as VisaCustomerCompany).Id = Convert.ToInt32(dr["Id"]);
  1723. (t as VisaCustomerCompany).DCid = Convert.ToInt32(dr["DCid"]);
  1724. (t as VisaCustomerCompany).Company = dr["Company"].ToString();
  1725. (t as VisaCustomerCompany).CompanyAddress = dr["CompanyAddress"].ToString();
  1726. (t as VisaCustomerCompany).Phone = dr["Phone"].ToString();
  1727. (t as VisaCustomerCompany).Job = dr["Job"].ToString();
  1728. (t as VisaCustomerCompany).LeaderName = dr["LeaderName"].ToString();
  1729. (t as VisaCustomerCompany).WorkStart = dr["WorkStart"].ToString();
  1730. (t as VisaCustomerCompany).WorkEnd = dr["WorkEnd"].ToString();
  1731. (t as VisaCustomerCompany).WorkState = dr["WorkState"].ToString();
  1732. break;
  1733. case "VisaCustomerFamily":
  1734. (t as VisaCustomerFamily).Id = Convert.ToInt32(dr["Id"]);
  1735. (t as VisaCustomerFamily).DCId = Convert.ToInt32(dr["DCId"]);
  1736. (t as VisaCustomerFamily).Appellation = dr["Appellation"].ToString();
  1737. (t as VisaCustomerFamily).Name = dr["Name"].ToString();
  1738. (t as VisaCustomerFamily).BirthDay = dr["BirthDay"].ToString();
  1739. (t as VisaCustomerFamily).BirthPlace = dr["BirthPlace"].ToString();
  1740. (t as VisaCustomerFamily).Politics = dr["Politics"].ToString();
  1741. (t as VisaCustomerFamily).Client = dr["Client"].ToString();
  1742. (t as VisaCustomerFamily).Address = dr["Address"].ToString();
  1743. (t as VisaCustomerFamily).IsEu = Convert.ToInt32(dr["IsEu"]);
  1744. (t as VisaCustomerFamily).NameSnd = dr["NameSnd"].ToString();
  1745. (t as VisaCustomerFamily).BirthDaySnd = dr["BirthDaySnd"].ToString();
  1746. (t as VisaCustomerFamily).Nationality = dr["Nationality"].ToString();
  1747. (t as VisaCustomerFamily).IDCard = dr["IDCard"].ToString();
  1748. (t as VisaCustomerFamily).Reletionship = dr["Reletionship"].ToString();
  1749. (t as VisaCustomerFamily).IsUSA = dr["IsUSA"].ToString();
  1750. break;
  1751. case "VisaCustomerSchool":
  1752. (t as VisaCustomerSchool).Id = Convert.ToInt32(dr["Id"]);
  1753. (t as VisaCustomerSchool).DCid = Convert.ToInt32(dr["DCid"]);
  1754. (t as VisaCustomerSchool).School = dr["School"].ToString();
  1755. (t as VisaCustomerSchool).Address = dr["Address"].ToString();
  1756. (t as VisaCustomerSchool).Teacher = dr["Teacher"].ToString();
  1757. (t as VisaCustomerSchool).Subject = dr["Subject"].ToString();
  1758. (t as VisaCustomerSchool).StudyStart = dr["StudyStart"].ToString();
  1759. (t as VisaCustomerSchool).StudyEnd = dr["StudyEnd"].ToString();
  1760. break;
  1761. case "VisaProgress":
  1762. (t as VisaProgress).Id = Convert.ToInt32(dr["Id"]);
  1763. (t as VisaProgress).Diid = Convert.ToInt32(dr["Diid"]);
  1764. (t as VisaProgress).Country = dr["Country"].ToString();
  1765. (t as VisaProgress).GetData = dr["GetData"].ToString();
  1766. (t as VisaProgress).GetDataTime = dr["GetDataTime"].ToString();
  1767. (t as VisaProgress).GetPassport = dr["GetPassport"].ToString();
  1768. (t as VisaProgress).GetPassportTime = dr["GetPassportTime"].ToString();
  1769. (t as VisaProgress).FillData = dr["FillData"].ToString();
  1770. (t as VisaProgress).FillDataTime = dr["FillDataTime"].ToString();
  1771. (t as VisaProgress).SendVisa = dr["SendVisa"].ToString();
  1772. (t as VisaProgress).SendVisaTime = dr["SendVisaTime"].ToString();
  1773. (t as VisaProgress).SignOut = dr["SignOut"].ToString();
  1774. (t as VisaProgress).SignOutTime = dr["SignOutTime"].ToString();
  1775. (t as VisaProgress).SendBackPassport = dr["SendBackPassport"].ToString();
  1776. (t as VisaProgress).SendBackPassporTime = dr["SendBackPassporTime"].ToString();
  1777. (t as VisaProgress).Receiver = dr["Receiver"].ToString();
  1778. (t as VisaProgress).Oper = Convert.ToInt32(dr["Oper"]);
  1779. (t as VisaProgress).Opdate = dr["Opdate"].ToString();
  1780. (t as VisaProgress).Isdel = Convert.ToInt32(dr["Isdel"]);
  1781. break;
  1782. case "DelegationEnData":
  1783. (t as DelegationEnData).Id = Convert.ToInt32(dr["Id"]);
  1784. (t as DelegationEnData).Area = dr["Area"].ToString();
  1785. (t as DelegationEnData).Job = dr["Job"].ToString();
  1786. (t as DelegationEnData).JobEn = dr["JobEn"].ToString();
  1787. (t as DelegationEnData).DelegationSetting = dr["DelegationSetting"].ToString();
  1788. (t as DelegationEnData).DelegationSettingEn = dr["DelegationSettingEn"].ToString();
  1789. (t as DelegationEnData).Oper = Convert.ToInt32(dr["Oper"]);
  1790. (t as DelegationEnData).Opdate = dr["Opdate"].ToString();
  1791. (t as DelegationEnData).Isdel = Convert.ToInt32(dr["Isdel"]);
  1792. break;
  1793. case "AirTicketAgent":
  1794. (t as AirTicketAgent).Id = Convert.ToInt32(dr["Id"]);
  1795. (t as AirTicketAgent).Name = dr["Name"].ToString();
  1796. (t as AirTicketAgent).Account = dr["Account"].ToString();
  1797. (t as AirTicketAgent).Bank = dr["Bank"].ToString();
  1798. (t as AirTicketAgent).OPer = Convert.ToInt32(dr["OPer"]);
  1799. (t as AirTicketAgent).OPdate = dr["OPdate"].ToString();
  1800. (t as AirTicketAgent).Isdel = Convert.ToInt32(dr["Isdel"]);
  1801. break;
  1802. case "DeleClient":
  1803. (t as DeleClient).Id = Convert.ToInt32(dr["Id"]);
  1804. (t as DeleClient).Diid = Convert.ToInt32(dr["Diid"]);
  1805. (t as DeleClient).Name = dr["Name"].ToString();
  1806. (t as DeleClient).LastName = dr["LastName"].ToString();
  1807. (t as DeleClient).Pinyin = dr["Pinyin"].ToString();
  1808. (t as DeleClient).Company = dr["Company"].ToString();
  1809. (t as DeleClient).GroupUnit = dr["GroupUnit"].ToString();
  1810. (t as DeleClient).Job = dr["Job"].ToString();
  1811. (t as DeleClient).Phone = dr["Phone"].ToString();
  1812. (t as DeleClient).Sex = dr["Sex"].ToString();
  1813. (t as DeleClient).IDcard = dr["IDcard"].ToString();
  1814. (t as DeleClient).PassprotType = dr["PassprotType"].ToString();
  1815. (t as DeleClient).PassportNo = dr["PassportNo"].ToString();
  1816. (t as DeleClient).passportCountry = dr["passportCountry"].ToString();
  1817. (t as DeleClient).IssuePlace = dr["IssuePlace"].ToString();
  1818. (t as DeleClient).IssueDate = dr["IssueDate"].ToString();
  1819. (t as DeleClient).ExpiryDate = dr["ExpiryDate"].ToString();
  1820. (t as DeleClient).Birthday = dr["Birthday"].ToString();
  1821. (t as DeleClient).AirType = dr["AirType"].ToString();
  1822. (t as DeleClient).AirRemark = dr["AirRemark"].ToString();
  1823. (t as DeleClient).RoomType = dr["RoomType"].ToString();
  1824. (t as DeleClient).Remark = dr["Remark"].ToString();
  1825. (t as DeleClient).OPer = Convert.ToInt32(dr["OPer"]);
  1826. (t as DeleClient).OPdate = dr["OPdate"].ToString();
  1827. (t as DeleClient).Isdel = Convert.ToInt32(dr["Isdel"]);
  1828. break;
  1829. case "DeleClientNeeds":
  1830. (t as DeleClientNeeds).Id = Convert.ToInt32(dr["Id"]);
  1831. (t as DeleClientNeeds).Diid = Convert.ToInt32(dr["Diid"]);
  1832. (t as DeleClientNeeds).OffActPlace = dr["OffActPlace"].ToString();
  1833. (t as DeleClientNeeds).OffActLetter = dr["OffActLetter"].ToString();
  1834. (t as DeleClientNeeds).TransNeed = dr["TransNeed"].ToString();
  1835. (t as DeleClientNeeds).TranLanguage = dr["TranLanguage"].ToString();
  1836. (t as DeleClientNeeds).TranScene = dr["TranScene"].ToString();
  1837. (t as DeleClientNeeds).VisaNeeds = dr["VisaNeeds"].ToString();
  1838. (t as DeleClientNeeds).Hobby = dr["Hobby"].ToString();
  1839. (t as DeleClientNeeds).CarNeeds = dr["CarNeeds"].ToString();
  1840. (t as DeleClientNeeds).GuideNeeds = dr["GuideNeeds"].ToString();
  1841. (t as DeleClientNeeds).MealNeeds = dr["MealNeeds"].ToString();
  1842. (t as DeleClientNeeds).CheckInTime = dr["CheckInTime"].ToString();
  1843. (t as DeleClientNeeds).HotelLevel = dr["HotelLevel"].ToString();
  1844. (t as DeleClientNeeds).HotelPosition = dr["HotelPosition"].ToString();
  1845. (t as DeleClientNeeds).RoomNum = dr["RoomNum"].ToString();
  1846. (t as DeleClientNeeds).NeedsRemark = dr["NeedsRemark"].ToString();
  1847. (t as DeleClientNeeds).OPer = Convert.ToInt32(dr["OPer"]);
  1848. (t as DeleClientNeeds).OPdate = dr["OPdate"].ToString();
  1849. (t as DeleClientNeeds).Isdel = Convert.ToInt32(dr["Isdel"]);
  1850. break;
  1851. case "BackProgress":
  1852. (t as BackProgress).Id = Convert.ToInt32(dr["Id"]);
  1853. (t as BackProgress).Diid = Convert.ToInt32(dr["Diid"]);
  1854. (t as BackProgress).BPTime = dr["BPTime"].ToString();
  1855. (t as BackProgress).BPRemark = dr["BPRemark"].ToString();
  1856. (t as BackProgress).SQTime = dr["SQTime"].ToString();
  1857. (t as BackProgress).SQRemark = dr["SQRemark"].ToString();
  1858. (t as BackProgress).CPJTime = dr["CPJTime"].ToString();
  1859. (t as BackProgress).CPJRemark = dr["CPJRemark"].ToString();
  1860. (t as BackProgress).HZTime = dr["HZTime"].ToString();
  1861. (t as BackProgress).HZRemark = dr["HZRemark"].ToString();
  1862. (t as BackProgress).QZTime = dr["QZTime"].ToString();
  1863. (t as BackProgress).QZRemark = dr["QZRemark"].ToString();
  1864. (t as BackProgress).SQQZTime = dr["SQQZTime"].ToString();
  1865. (t as BackProgress).SQQZRemark = dr["SQQZRemark"].ToString();
  1866. (t as BackProgress).CQTime = dr["CQTime"].ToString();
  1867. (t as BackProgress).CQRemark = dr["CQRemark"].ToString();
  1868. (t as BackProgress).XQHTime = dr["XQHTime"].ToString();
  1869. (t as BackProgress).XQHRemark = dr["XQHRemark"].ToString();
  1870. (t as BackProgress).SJTime = dr["SJTime"].ToString();
  1871. (t as BackProgress).SJRemark = dr["SJRemark"].ToString();
  1872. (t as BackProgress).OPer = Convert.ToInt32(dr["OPer"]);
  1873. (t as BackProgress).OPDate = dr["OPDate"].ToString();
  1874. (t as BackProgress).Isdel = Convert.ToInt32(dr["Isdel"]);
  1875. break;
  1876. case "EnterExitCost":
  1877. (t as EnterExitCost).Id = Convert.ToInt32(dr["Id"]);
  1878. (t as EnterExitCost).Diid = Convert.ToInt32(dr["Diid"]);
  1879. (t as EnterExitCost).InsidePay = dr["InsidePay"].ToString();
  1880. (t as EnterExitCost).VisaPay = dr["VisaPay"].ToString();
  1881. (t as EnterExitCost).VisaPayRemark = dr["VisaPayRemark"].ToString();
  1882. (t as EnterExitCost).SafePay = dr["SafePay"].ToString();
  1883. (t as EnterExitCost).YiMiao = dr["YiMiao"].ToString();
  1884. (t as EnterExitCost).HeSuan = dr["HeSuan"].ToString();
  1885. (t as EnterExitCost).ServiceFee = dr["ServiceFee"].ToString();
  1886. (t as EnterExitCost).Ticket = dr["Ticket"].ToString();
  1887. (t as EnterExitCost).OutsideJJ = dr["OutsideJJ"].ToString();
  1888. (t as EnterExitCost).OutsaideGW = dr["OutsaideGW"].ToString();
  1889. (t as EnterExitCost).AirJJ = dr["AirJJ"].ToString();
  1890. (t as EnterExitCost).AirGW = dr["AirGW"].ToString();
  1891. (t as EnterExitCost).CityTranffic = dr["CityTranffic"].ToString();
  1892. (t as EnterExitCost).RateUSD = float.Parse(dr["RateUSD"].ToString());
  1893. (t as EnterExitCost).RateJPY = float.Parse(dr["RateJPY"].ToString());
  1894. (t as EnterExitCost).RateEUR = float.Parse(dr["RateEUR"].ToString());
  1895. (t as EnterExitCost).RateGBP = float.Parse(dr["RateGBP"].ToString());
  1896. (t as EnterExitCost).RateHKD = float.Parse(dr["RateHKD"].ToString());
  1897. (t as EnterExitCost).OPer = Convert.ToInt32(dr["OPer"]);
  1898. (t as EnterExitCost).OPDate = dr["OPDate"].ToString();
  1899. (t as EnterExitCost).Isdel = Convert.ToInt32(dr["Isdel"]);
  1900. (t as EnterExitCost).ChoiceOne = Convert.ToInt32(dr["ChoiceOne"]);
  1901. (t as EnterExitCost).ChoiceTwo = Convert.ToInt32(dr["ChoiceTwo"]);
  1902. (t as EnterExitCost).ChoiceThree = Convert.ToInt32(dr["ChoiceThree"]);
  1903. (t as EnterExitCost).ChoiceFour = Convert.ToInt32(dr["ChoiceFour"]);
  1904. (t as EnterExitCost).ChoiceFive = Convert.ToInt32(dr["ChoiceFive"]);
  1905. (t as EnterExitCost).SumJJC = Convert.ToInt32(dr["SumJJC"]);
  1906. (t as EnterExitCost).SumGWC = Convert.ToInt32(dr["SumGWC"]);
  1907. (t as EnterExitCost).AirJJC_Checked = Convert.ToInt32(dr["AirJJC_Checked"]);
  1908. (t as EnterExitCost).AirGWC_Checked = Convert.ToInt32(dr["AirGWC_Checked"]);
  1909. (t as EnterExitCost).ChoiceSix = Convert.ToInt32(dr["ChoiceSix"]);
  1910. break;
  1911. case "DayAndCost":
  1912. (t as DayAndCost).Id = Convert.ToInt32(dr["Id"]);
  1913. (t as DayAndCost).Diid = Convert.ToInt32(dr["Diid"]);
  1914. (t as DayAndCost).Type = Convert.ToInt32(dr["Type"]);
  1915. (t as DayAndCost).Days = Convert.ToInt32(dr["Days"]);
  1916. (t as DayAndCost).Place = dr["Place"].ToString();
  1917. (t as DayAndCost).Cost = dr["Cost"].ToString();
  1918. (t as DayAndCost).Currency = dr["Currency"].ToString();
  1919. (t as DayAndCost).SubTotal = dr["SubTotal"].ToString();
  1920. (t as DayAndCost).OPer = Convert.ToInt32(dr["OPer"]);
  1921. (t as DayAndCost).OPDate = dr["OPDate"].ToString();
  1922. (t as DayAndCost).Isdel = Convert.ToInt32(dr["Isdel"]);
  1923. break;
  1924. case "DeleProgress":
  1925. (t as DeleProgress).Id = Convert.ToInt32(dr["Id"]);
  1926. (t as DeleProgress).Diid = Convert.ToInt32(dr["Diid"]);
  1927. (t as DeleProgress).BP_GetReady = Convert.ToInt32(dr["BP_GetReady"]);
  1928. (t as DeleProgress).BP_GetReadyTime = dr["BP_GetReadyTime"].ToString();
  1929. (t as DeleProgress).BP_Work = Convert.ToInt32(dr["BP_Work"]);
  1930. (t as DeleProgress).BP_WorkTime = dr["BP_WorkTime"].ToString();
  1931. (t as DeleProgress).HZ_Work = Convert.ToInt32(dr["HZ_Work"]);
  1932. (t as DeleProgress).HZ_WorkTime = dr["HZ_WorkTime"].ToString();
  1933. (t as DeleProgress).QZ_Work = Convert.ToInt32(dr["QZ_Work"]);
  1934. (t as DeleProgress).QZ_WorkTime = dr["QZ_WorkTime"].ToString();
  1935. (t as DeleProgress).SQ_Work = Convert.ToInt32(dr["SQ_Work"]);
  1936. (t as DeleProgress).SQ_WorkTime = dr["SQ_WorkTime"].ToString();
  1937. (t as DeleProgress).CQ = Convert.ToInt32(dr["CQ"]);
  1938. (t as DeleProgress).CQTime = dr["CQTime"].ToString();
  1939. (t as DeleProgress).XQH = Convert.ToInt32(dr["XQH"]);
  1940. (t as DeleProgress).XQHTime = dr["XQHTime"].ToString();
  1941. (t as DeleProgress).SJ = Convert.ToInt32(dr["SJ"]);
  1942. (t as DeleProgress).SJTime = dr["SJTime"].ToString();
  1943. (t as DeleProgress).OPer = Convert.ToInt32(dr["OPer"]);
  1944. (t as DeleProgress).OPDate = dr["OPDate"].ToString();
  1945. break;
  1946. case "EnterExitPrice":
  1947. (t as EnterExitPrice).Id = Convert.ToInt32(dr["Id"]);
  1948. (t as EnterExitPrice).Continent = dr["Continent"].ToString();
  1949. (t as EnterExitPrice).Country = dr["Country"].ToString();
  1950. (t as EnterExitPrice).City = dr["City"].ToString();
  1951. (t as EnterExitPrice).Currency = dr["Currency"].ToString();
  1952. (t as EnterExitPrice).RoomCost = dr["RoomCost"].ToString();
  1953. (t as EnterExitPrice).FoodCost = dr["FoodCost"].ToString();
  1954. (t as EnterExitPrice).PublicCost = dr["PublicCost"].ToString();
  1955. (t as EnterExitPrice).Oper = Convert.ToInt32(dr["Oper"]);
  1956. (t as EnterExitPrice).Opdate = dr["Opdate"].ToString();
  1957. (t as EnterExitPrice).Isdel = Convert.ToInt32(dr["Isdel"]);
  1958. break;
  1959. case "Translator":
  1960. (t as Translator).Id = Convert.ToInt32(dr["Id"]);
  1961. (t as Translator).OA_Oper = dr["OA_Oper"].ToString();
  1962. (t as Translator).Name = dr["Name"].ToString();
  1963. (t as Translator).Back = dr["Back"].ToString();
  1964. (t as Translator).Resume = dr["Resume"].ToString();
  1965. (t as Translator).Language = dr["Language"].ToString();
  1966. (t as Translator).Tel = dr["Tel"].ToString();
  1967. (t as Translator).Certificate = dr["Certificate"].ToString();
  1968. (t as Translator).knowRelations = dr["knowRelations"].ToString();
  1969. (t as Translator).Shorthand = dr["Shorthand"].ToString();
  1970. (t as Translator).Suit = dr["Suit"].ToString();
  1971. (t as Translator).List = dr["List"].ToString();
  1972. (t as Translator).SuitScore = dr["SuitScore"].ToString();
  1973. (t as Translator).ShortHandScore = dr["ShortHandScore"].ToString();
  1974. (t as Translator).AbilityScore = dr["AbilityScore"].ToString();
  1975. (t as Translator).TimeScore = dr["TimeScore"].ToString();
  1976. (t as Translator).LinkUpScore = dr["LinkUpScore"].ToString();
  1977. (t as Translator).QualityScore = dr["QualityScore"].ToString();
  1978. (t as Translator).StrainScore = dr["StrainScore"].ToString();
  1979. (t as Translator).MeetScore = dr["MeetScore"].ToString();
  1980. (t as Translator).CertificateScore = dr["CertificateScore"].ToString();
  1981. (t as Translator).Oper = Convert.ToInt32(dr["Isdel"]);
  1982. (t as Translator).Opdate = dr["Opdate"].ToString();
  1983. (t as Translator).Isdel = Convert.ToInt32(dr["Isdel"]);
  1984. break;
  1985. case "AirGoods":
  1986. (t as AirGoods).Id = Convert.ToInt32(dr["Id"]);
  1987. (t as AirGoods).Diid = Convert.ToInt32(dr["Diid"]);
  1988. (t as AirGoods).Goods = dr["Goods"].ToString();
  1989. (t as AirGoods).Price = dr["Price"].ToString();
  1990. (t as AirGoods).Num = dr["Num"].ToString();
  1991. (t as AirGoods).SubPrices = dr["SubPrices"].ToString();
  1992. (t as AirGoods).Remark = dr["Remark"].ToString();
  1993. (t as AirGoods).Oper = Convert.ToInt32(dr["Isdel"]);
  1994. (t as AirGoods).Opdate = dr["Opdate"].ToString();
  1995. (t as AirGoods).Isdel = Convert.ToInt32(dr["Isdel"]);
  1996. break;
  1997. case "AirTicketBlackCode":
  1998. (t as AirTicketBlackCode).Id = Convert.ToInt32(dr["Id"]);
  1999. (t as AirTicketBlackCode).Diid = Convert.ToInt32(dr["Did"]);
  2000. (t as AirTicketBlackCode).LeaveCode = dr["LeaveCode"].ToString();
  2001. (t as AirTicketBlackCode).BlackCode = dr["BlackCode"].ToString();
  2002. (t as AirTicketBlackCode).ReturnCode = dr["ReturnCode"].ToString();
  2003. (t as AirTicketBlackCode).Price = dr["Price"].ToString();
  2004. (t as AirTicketBlackCode).NowPrice = dr["NowPrice"].ToString();
  2005. (t as AirTicketBlackCode).BCPrice = dr["BCPrice"].ToString();
  2006. (t as AirTicketBlackCode).ECPrice = dr["ECPrice"].ToString();
  2007. (t as AirTicketBlackCode).OPer = Convert.ToInt32(dr["OPer"]);
  2008. (t as AirTicketBlackCode).Opdate = dr["Opdate"].ToString();
  2009. (t as AirTicketBlackCode).Isdel = Convert.ToInt32(dr["Isdel"]);
  2010. break;
  2011. case "TravelList":
  2012. (t as TravelList).Id = Convert.ToInt32(dr["Id"]);
  2013. (t as TravelList).Diid = Convert.ToInt32(dr["Diid"]);
  2014. (t as TravelList).Days = Convert.ToInt32(dr["Days"]);
  2015. (t as TravelList).Date = dr["Date"].ToString();
  2016. (t as TravelList).WeekDay = dr["WeekDay"].ToString();
  2017. (t as TravelList).Traffic_First = dr["Traffic_First"].ToString();
  2018. (t as TravelList).Traffic_Second = dr["Traffic_Second"].ToString();
  2019. (t as TravelList).Trip = dr["Trip"].ToString();
  2020. (t as TravelList).OPer = Convert.ToInt32(dr["OPer"]);
  2021. (t as TravelList).OPdate = dr["OPdate"].ToString();
  2022. (t as TravelList).issel = Convert.ToInt32(dr["issel"]);
  2023. (t as TravelList).diffgroup = Convert.ToInt32(dr["diffgroup"]);
  2024. (t as TravelList).Isdel = Convert.ToInt32(dr["Isdel"]);
  2025. break;
  2026. case "TravelList_External":
  2027. (t as TravelList_External).Id = Convert.ToInt32(dr["Id"]);
  2028. (t as TravelList_External).Diid = Convert.ToInt32(dr["Diid"]);
  2029. (t as TravelList_External).Days = Convert.ToInt32(dr["Days"]);
  2030. (t as TravelList_External).Date = dr["Date"].ToString();
  2031. (t as TravelList_External).WeekDay = dr["WeekDay"].ToString();
  2032. (t as TravelList_External).Traffic_First = dr["Traffic_First"].ToString();
  2033. (t as TravelList_External).Traffic_Second = dr["Traffic_Second"].ToString();
  2034. (t as TravelList_External).Trip = dr["Trip"].ToString();
  2035. (t as TravelList_External).OPer = Convert.ToInt32(dr["OPer"]);
  2036. (t as TravelList_External).OPdate = dr["OPdate"].ToString();
  2037. (t as TravelList_External).Isdel = Convert.ToInt32(dr["Isdel"]);
  2038. break;
  2039. case "ApprovalTravel":
  2040. (t as ApprovalTravel).Id = Convert.ToInt32(dr["Id"]);
  2041. (t as ApprovalTravel).Diid = Convert.ToInt32(dr["Diid"]);
  2042. (t as ApprovalTravel).Date = dr["Date"].ToString();
  2043. (t as ApprovalTravel).Time = dr["Time"].ToString();
  2044. (t as ApprovalTravel).Detail = dr["Detail"].ToString();
  2045. (t as ApprovalTravel).OPer = Convert.ToInt32(dr["OPer"]);
  2046. (t as ApprovalTravel).OPdate = dr["OPdate"].ToString();
  2047. (t as ApprovalTravel).Isdel = Convert.ToInt32(dr["Isdel"]);
  2048. break;
  2049. case "VisaCheckOutTime":
  2050. (t as VisaCheckOutTime).Id = Convert.ToInt32(dr["Id"]);
  2051. (t as VisaCheckOutTime).Contient = dr["Contient"].ToString();
  2052. (t as VisaCheckOutTime).Country = dr["Country"].ToString();
  2053. (t as VisaCheckOutTime).Time = dr["Time"].ToString();
  2054. (t as VisaCheckOutTime).RushTime = dr["RushTime"].ToString();
  2055. (t as VisaCheckOutTime).Remark = dr["Remark"].ToString();
  2056. (t as VisaCheckOutTime).Oper = Convert.ToInt32(dr["Oper"]);
  2057. (t as VisaCheckOutTime).Opdate = dr["Opdate"].ToString();
  2058. (t as VisaCheckOutTime).Isdel = Convert.ToInt32(dr["Isdel"]);
  2059. break;
  2060. case "VisaCheckTimeForBack":
  2061. (t as VisaCheckTimeForBack).Id = Convert.ToInt32(dr["Id"]);
  2062. (t as VisaCheckTimeForBack).Diid = Convert.ToInt32(dr["Diid"]);
  2063. (t as VisaCheckTimeForBack).Country = dr["Country"].ToString();
  2064. (t as VisaCheckTimeForBack).Time = dr["Time"].ToString();
  2065. (t as VisaCheckTimeForBack).Isdel = Convert.ToInt32(dr["Isdel"]);
  2066. break;
  2067. // 签证费用标准
  2068. case "Country_FeeCost":
  2069. (t as Country_FeeCost).VisaId = Convert.ToInt32(dr["VisaId"]);
  2070. (t as Country_FeeCost).VisaContinent = dr["VisaContinent"].ToString();
  2071. (t as Country_FeeCost).VisaCountry = dr["VisaCountry"].ToString();
  2072. (t as Country_FeeCost).IsVisaExemption = Convert.ToInt32(dr["IsVisaExemption"]);
  2073. (t as Country_FeeCost).IsVisaOnArrival = Convert.ToInt32(dr["IsVisaOnArrival"]);
  2074. (t as Country_FeeCost).IsElectronicSignature = Convert.ToInt32(dr["IsElectronicSignature"]);
  2075. (t as Country_FeeCost).VisaPrice = float.Parse(dr["VisaPrice"].ToString());
  2076. (t as Country_FeeCost).VisaPriceDesc = dr["VisaPriceDesc"].ToString();
  2077. (t as Country_FeeCost).VisaType = dr["VisaType"].ToString();
  2078. (t as Country_FeeCost).VisaTime = dr["VisaTime"].ToString();
  2079. (t as Country_FeeCost).IsUrgent = Convert.ToInt32(dr["IsUrgent"]);
  2080. (t as Country_FeeCost).UrgentTime = dr["UrgentTime"].ToString();
  2081. (t as Country_FeeCost).UrgentPrice = float.Parse(dr["UrgentPrice"].ToString());
  2082. (t as Country_FeeCost).UrgentPriceDesc = dr["UrgentPriceDesc"].ToString();
  2083. (t as Country_FeeCost).VisaAddress = dr["VisaAddress"].ToString();
  2084. (t as Country_FeeCost).VisaRemark = dr["VisaRemark"].ToString();
  2085. (t as Country_FeeCost).Oper = Convert.ToInt32(dr["Oper"]);
  2086. (t as Country_FeeCost).OPDate = dr["OPDate"].ToString();
  2087. (t as Country_FeeCost).isDel = Convert.ToInt32(dr["isDel"]);
  2088. break;
  2089. case "DelegationInfoOrFeeCost":
  2090. (t as DelegationInfoOrFeeCost).DFCid = Convert.ToInt32(dr["DFCid"]);
  2091. (t as DelegationInfoOrFeeCost).DIid = Convert.ToInt32(dr["DIid"]);
  2092. (t as DelegationInfoOrFeeCost).CFCid = Convert.ToInt32(dr["CFCid"]);
  2093. (t as DelegationInfoOrFeeCost).Oper = Convert.ToInt32(dr["Oper"]);
  2094. (t as DelegationInfoOrFeeCost).OpdTime = dr["OpdTime"].ToString();
  2095. (t as DelegationInfoOrFeeCost).isdel = Convert.ToInt32(dr["isdel"]);
  2096. break;
  2097. case "GoogleMapApiResult":
  2098. (t as GoogleMapApiResult).Id = Convert.ToInt32(dr["Id"]);
  2099. (t as GoogleMapApiResult).Diid = Convert.ToInt32(dr["Diid"]);
  2100. (t as GoogleMapApiResult).Date = dr["Date"].ToString();
  2101. (t as GoogleMapApiResult).Moment = dr["Moment"].ToString();
  2102. (t as GoogleMapApiResult).StartAddress = dr["StartAddress"].ToString();
  2103. (t as GoogleMapApiResult).EndAddress = dr["EndAddress"].ToString();
  2104. (t as GoogleMapApiResult).Time = dr["Time"].ToString();
  2105. (t as GoogleMapApiResult).Distance = dr["Distance"].ToString();
  2106. break;
  2107. case "TravelDetails":
  2108. (t as TravelDetails).Id = Convert.ToInt32(dr["Id"]);
  2109. (t as TravelDetails).Diid = Convert.ToInt32(dr["Diid"]);
  2110. (t as TravelDetails).OrderNum = dr["OrderNum"].ToString();
  2111. (t as TravelDetails).Date = dr["Date"].ToString();
  2112. (t as TravelDetails).Time = dr["Time"].ToString();
  2113. (t as TravelDetails).ActivityType = dr["ActivityType"].ToString();
  2114. (t as TravelDetails).Activity = dr["Activity"].ToString();
  2115. (t as TravelDetails).Address = dr["Address"].ToString();
  2116. (t as TravelDetails).Remark = dr["Remark"].ToString();
  2117. (t as TravelDetails).OPer = Convert.ToInt32(dr["OPer"]);
  2118. (t as TravelDetails).Opdate = dr["Opdate"].ToString();
  2119. (t as TravelDetails).Isdel = Convert.ToInt32(dr["Isdel"]);
  2120. break;
  2121. case "InvitingPartyInfo":
  2122. (t as InvitingPartyInfo).Id = Convert.ToInt32(dr["Id"]);
  2123. (t as InvitingPartyInfo).Diid = Convert.ToInt32(dr["Diid"]);
  2124. (t as InvitingPartyInfo).Country = dr["Country"].ToString();
  2125. (t as InvitingPartyInfo).City = dr["City"].ToString();
  2126. (t as InvitingPartyInfo).InvitingUnit = dr["InvitingUnit"].ToString();
  2127. (t as InvitingPartyInfo).InvitingAddress = dr["InvitingAddress"].ToString();
  2128. (t as InvitingPartyInfo).Contacts = dr["Contacts"].ToString();
  2129. (t as InvitingPartyInfo).ContactsJob = dr["ContactsJob"].ToString();
  2130. (t as InvitingPartyInfo).ContactsTel = dr["ContactsTel"].ToString();
  2131. (t as InvitingPartyInfo).ContactsEmail = dr["ContactsEmail"].ToString();
  2132. (t as InvitingPartyInfo).ContactsFax = dr["ContactsFax"].ToString();
  2133. (t as InvitingPartyInfo).InvitingUrl = dr["InvitingUrl"].ToString();
  2134. (t as InvitingPartyInfo).Oper = Convert.ToInt32(dr["Oper"]);
  2135. (t as InvitingPartyInfo).Opdate = dr["Opdate"].ToString();
  2136. (t as InvitingPartyInfo).Isdel = Convert.ToInt32(dr["Isdel"]);
  2137. (t as InvitingPartyInfo).UnitWeb = dr["UnitWeb"].ToString();
  2138. (t as InvitingPartyInfo).Field = dr["Field"].ToString();
  2139. break;
  2140. case "GroupBudgetInfo":
  2141. (t as GroupBudgetInfo).G_Id = Convert.ToInt32(dr["G_Id"]);
  2142. (t as GroupBudgetInfo).G_Diid = Convert.ToInt32(dr["G_Diid"]);
  2143. (t as GroupBudgetInfo).G_GroupName = dr["G_GroupName"].ToString();
  2144. (t as GroupBudgetInfo).G_Destination = dr["G_Destination"].ToString();
  2145. (t as GroupBudgetInfo).G_StartDate = dr["G_StartDate"].ToString();
  2146. (t as GroupBudgetInfo).G_EndDate = dr["G_EndDate"].ToString();
  2147. (t as GroupBudgetInfo).G_StayDays = dr["G_StayDays"].ToString();
  2148. (t as GroupBudgetInfo).G_TripDescribe = dr["G_TripDescribe"].ToString();
  2149. (t as GroupBudgetInfo).G_GroupNumber = dr["G_GroupNumber"].ToString();
  2150. (t as GroupBudgetInfo).G_PettyCash = dr["G_PettyCash"].ToString();
  2151. (t as GroupBudgetInfo).G_InvitationFee = dr["G_InvitationFee"].ToString();
  2152. (t as GroupBudgetInfo).G_VisaDetails = dr["G_VisaDetails"].ToString();
  2153. (t as GroupBudgetInfo).G_VisaCoefficient = dr["G_VisaCoefficient"].ToString();
  2154. (t as GroupBudgetInfo).G_VisaCostPrice = dr["G_VisaCostPrice"].ToString();
  2155. (t as GroupBudgetInfo).G_VisaOffer = dr["G_VisaOffer"].ToString();
  2156. (t as GroupBudgetInfo).G_AirDetails = dr["G_AirDetails"].ToString();
  2157. (t as GroupBudgetInfo).G_AirCoefficient = dr["G_AirCoefficient"].ToString();
  2158. (t as GroupBudgetInfo).G_AirCostPrice = dr["G_AirCostPrice"].ToString();
  2159. (t as GroupBudgetInfo).G_AirOffer = dr["G_AirOffer"].ToString();
  2160. (t as GroupBudgetInfo).G_GroundingDetails = dr["G_GroundingDetails"].ToString();
  2161. (t as GroupBudgetInfo).G_GroundingCoefficient = dr["G_GroundingCoefficient"].ToString();
  2162. (t as GroupBudgetInfo).G_GroundingCostPrice = dr["G_GroundingCostPrice"].ToString();
  2163. (t as GroupBudgetInfo).G_GroundingOffer = dr["G_GroundingOffer"].ToString();
  2164. (t as GroupBudgetInfo).G_HotelDetails = dr["G_HotelDetails"].ToString();
  2165. (t as GroupBudgetInfo).G_HotelCoefficient = dr["G_HotelCoefficient"].ToString();
  2166. (t as GroupBudgetInfo).G_HotelCostPrice = dr["G_HotelCostPrice"].ToString();
  2167. (t as GroupBudgetInfo).G_HotelOffer = dr["G_HotelOffer"].ToString();
  2168. (t as GroupBudgetInfo).G_OfficialDetails = dr["G_OfficialDetails"].ToString();
  2169. (t as GroupBudgetInfo).G_OfficialCoefficient = dr["G_OfficialCoefficient"].ToString();
  2170. (t as GroupBudgetInfo).G_OfficialCostPrice = dr["G_OfficialCostPrice"].ToString();
  2171. (t as GroupBudgetInfo).G_OfficialOffer = dr["G_OfficialOffer"].ToString();
  2172. (t as GroupBudgetInfo).G_Oper = Convert.ToInt32(dr["G_Oper"]);
  2173. (t as GroupBudgetInfo).G_OPDate = dr["G_OPDate"].ToString();
  2174. (t as GroupBudgetInfo).G_Isdel = Convert.ToInt32(dr["G_Isdel"]);
  2175. break;
  2176. case "Restaurant_OP":
  2177. (t as Restaurant_OP).Id = Convert.ToInt32(dr["Id"]);
  2178. (t as Restaurant_OP).Country = dr["Country"].ToString();
  2179. (t as Restaurant_OP).City = dr["City"].ToString();
  2180. (t as Restaurant_OP).Name = dr["Name"].ToString();
  2181. (t as Restaurant_OP).SpecialDishes = dr["SpecialDishes"].ToString();
  2182. (t as Restaurant_OP).Address = dr["Address"].ToString();
  2183. (t as Restaurant_OP).Standard = dr["Standard"].ToString();
  2184. (t as Restaurant_OP).Currency = dr["Currency"].ToString();
  2185. (t as Restaurant_OP).PrivateRoom = dr["PrivateRoom"].ToString();
  2186. (t as Restaurant_OP).Remark = dr["Remark"].ToString();
  2187. (t as Restaurant_OP).OPer = Convert.ToInt32(dr["OPer"]);
  2188. (t as Restaurant_OP).OPdate = dr["OPdate"].ToString();
  2189. (t as Restaurant_OP).Isdel = Convert.ToInt32(dr["Isdel"]);
  2190. break;
  2191. case "CarGuides":
  2192. (t as CarGuides).Id = Convert.ToInt32(dr["Id"]);
  2193. (t as CarGuides).Country = dr["Country"].ToString();
  2194. (t as CarGuides).City = dr["City"].ToString();
  2195. (t as CarGuides).ServiceType = dr["ServiceType"].ToString();
  2196. (t as CarGuides).CarType = dr["CarType"].ToString();
  2197. (t as CarGuides).Offer = dr["Offer"].ToString();
  2198. (t as CarGuides).CGCost = dr["CGCost"].ToString();
  2199. (t as CarGuides).RuningTime = dr["RuningTime"].ToString();
  2200. (t as CarGuides).OvertimeFee = dr["OvertimeFee"].ToString();
  2201. (t as CarGuides).CGOvertimeFee = dr["CGOvertimeFee"].ToString();
  2202. (t as CarGuides).Currency = dr["Currency"].ToString();
  2203. (t as CarGuides).Remark = dr["Remark"].ToString();
  2204. (t as CarGuides).Oper = Convert.ToInt32(dr["Oper"]);
  2205. (t as CarGuides).OpDate = dr["OpDate"].ToString();
  2206. (t as CarGuides).Isdel = Convert.ToInt32(dr["Isdel"]);
  2207. break;
  2208. case "GuidesInfo":
  2209. (t as GuidesInfo).Id = Convert.ToInt32(dr["Id"]);
  2210. (t as GuidesInfo).Country = dr["Country"].ToString();
  2211. (t as GuidesInfo).City = dr["City"].ToString();
  2212. (t as GuidesInfo).ServiceType = dr["ServiceType"].ToString();
  2213. (t as GuidesInfo).When = dr["When"].ToString();
  2214. (t as GuidesInfo).Price = dr["Price"].ToString();
  2215. (t as GuidesInfo).TranslationPrice = dr["TranslationPrice"].ToString();
  2216. (t as GuidesInfo).OvertimeFee = dr["OvertimeFee"].ToString();
  2217. (t as GuidesInfo).Currency = dr["Currency"].ToString();
  2218. (t as GuidesInfo).Remark = dr["Remark"].ToString();
  2219. (t as GuidesInfo).Oper = Convert.ToInt32(dr["Oper"]);
  2220. (t as GuidesInfo).OpDate = dr["OpDate"].ToString();
  2221. (t as GuidesInfo).Isdel = Convert.ToInt32(dr["Isdel"]);
  2222. break;
  2223. case "ScenicSpotInfo":
  2224. (t as ScenicSpotInfo).Id = Convert.ToInt32(dr["Id"]);
  2225. (t as ScenicSpotInfo).Country = dr["Country"].ToString();
  2226. (t as ScenicSpotInfo).City = dr["City"].ToString();
  2227. (t as ScenicSpotInfo).ScenicSpot = dr["ScenicSpot"].ToString();
  2228. (t as ScenicSpotInfo).ScenicSpotDetail = dr["ScenicSpotDetail"].ToString();
  2229. (t as ScenicSpotInfo).Price = float.Parse(dr["Price"].ToString());
  2230. (t as ScenicSpotInfo).Currency = dr["Currency"].ToString();
  2231. (t as ScenicSpotInfo).Rate = float.Parse(dr["Rate"].ToString());
  2232. (t as ScenicSpotInfo).Address = dr["Address"].ToString();
  2233. (t as ScenicSpotInfo).Oper = Convert.ToInt32(dr["Oper"]);
  2234. (t as ScenicSpotInfo).OpDate = dr["OpDate"].ToString();
  2235. (t as ScenicSpotInfo).Isdel = Convert.ToInt32(dr["Isdel"]);
  2236. break;
  2237. case "CarInfo":
  2238. (t as CarInfo).Id = Convert.ToInt32(dr["Id"]);
  2239. (t as CarInfo).Country = dr["Country"].ToString();
  2240. (t as CarInfo).City = dr["City"].ToString();
  2241. (t as CarInfo).CarType = dr["CarType"].ToString();
  2242. (t as CarInfo).ServiceType = dr["ServiceType"].ToString();
  2243. (t as CarInfo).When = dr["When"].ToString();
  2244. (t as CarInfo).Price = dr["Price"].ToString();
  2245. (t as CarInfo).Currency = dr["Currency"].ToString();
  2246. (t as CarInfo).OvertimeFee = dr["OvertimeFee"].ToString();
  2247. (t as CarInfo).Remark = dr["Remark"].ToString();
  2248. (t as CarInfo).Oper = Convert.ToInt32(dr["Oper"]);
  2249. (t as CarInfo).OpDate = dr["OpDate"].ToString();
  2250. (t as CarInfo).Isdel = Convert.ToInt32(dr["Isdel"]);
  2251. break;
  2252. case "CheckBoxs":
  2253. (t as CheckBoxs).Id = Convert.ToInt32(dr["Id"]);
  2254. (t as CheckBoxs).Diid = Convert.ToInt32(dr["Diid"]);
  2255. (t as CheckBoxs).cbType = dr["cbType"].ToString();
  2256. (t as CheckBoxs).cbValues = dr["cbValues"].ToString();
  2257. (t as CheckBoxs).Oper = Convert.ToInt32(dr["Oper"]);
  2258. (t as CheckBoxs).OPDate = dr["OPDate"].ToString();
  2259. (t as CheckBoxs).Isdel = Convert.ToInt32(dr["Isdel"]);
  2260. break;
  2261. case "BackwardTable_Visa":
  2262. (t as BackwardTable_Visa).BT_Id = Convert.ToInt32(dr["BT_Id"]);
  2263. (t as BackwardTable_Visa).BT_Diid = Convert.ToInt32(dr["BT_Diid"]);
  2264. (t as BackwardTable_Visa).BT_VisaCountry = dr["BT_VisaCountry"].ToString();
  2265. (t as BackwardTable_Visa).BT_BusinessType = dr["BT_BusinessType"].ToString();
  2266. (t as BackwardTable_Visa).BT_VisaType = dr["BT_VisaType"].ToString();
  2267. (t as BackwardTable_Visa).BT_VisaTime = dr["BT_VisaTime"].ToString();
  2268. (t as BackwardTable_Visa).BT_Oper = Convert.ToInt32(dr["BT_Oper"]);
  2269. (t as BackwardTable_Visa).BT_OperDate = dr["BT_OperDate"].ToString();
  2270. (t as BackwardTable_Visa).BT_Isdel = Convert.ToInt32(dr["BT_Isdel"]);
  2271. break;
  2272. case "Commission":
  2273. (t as Commission).Id = Convert.ToInt32(dr["Id"]);
  2274. (t as Commission).Personnel = Convert.ToInt32(dr["Personnel"]);
  2275. (t as Commission).Diid = Convert.ToInt32(dr["Diid"]);
  2276. (t as Commission).GroupDate = dr["GroupDate"].ToString();
  2277. (t as Commission).GroupLvl = dr["GroupLvl"].ToString();
  2278. (t as Commission).NetProfit = dr["NetProfit"].ToString();
  2279. (t as Commission).Balance = dr["Balance"].ToString();
  2280. (t as Commission).Detail = dr["Detail"].ToString();
  2281. (t as Commission).Money = dr["Money"].ToString();
  2282. (t as Commission).WageYearMonth = dr["WageYearMonth"].ToString();
  2283. (t as Commission).IsMakeLoss = Convert.ToInt32(dr["IsMakeLoss"]);
  2284. (t as Commission).IsLoss = Convert.ToInt32(dr["IsLoss"]);
  2285. (t as Commission).OPer = Convert.ToInt32(dr["OPer"]);
  2286. (t as Commission).OPDate = dr["OPDate"].ToString();
  2287. (t as Commission).IsDel = Convert.ToInt32(dr["IsDel"]);
  2288. break;
  2289. case "SendMachineSuppliesData":
  2290. (t as SendMachineSuppliesData).Id = Convert.ToInt32(dr["Id"]);
  2291. (t as SendMachineSuppliesData).Country = dr["Country"].ToString();
  2292. (t as SendMachineSuppliesData).MaterialName = dr["MaterialName"].ToString();
  2293. (t as SendMachineSuppliesData).MaterialPrice = float.Parse(dr["MaterialPrice"].ToString());
  2294. (t as SendMachineSuppliesData).MaterialRemark = dr["MaterialRemark"].ToString();
  2295. (t as SendMachineSuppliesData).Operator = Convert.ToInt32(dr["Operator"]);
  2296. (t as SendMachineSuppliesData).OperatingTime = dr["OperatingTime"].ToString();
  2297. (t as SendMachineSuppliesData).Isdel = Convert.ToInt32(dr["Isdel"]);
  2298. break;
  2299. case "TeamAttachmentInfo":
  2300. (t as TeamAttachmentInfo).Id = Convert.ToInt32(dr["Id"]);
  2301. (t as TeamAttachmentInfo).Diid = Convert.ToInt32(dr["Diid"]);
  2302. (t as TeamAttachmentInfo).AirNumber = Convert.ToInt32(dr["AirNumber"]);
  2303. (t as TeamAttachmentInfo).HotelNumber = Convert.ToInt32(dr["HotelNumber"]);
  2304. (t as TeamAttachmentInfo).VisaNumber = Convert.ToInt32(dr["VisaNumber"]);
  2305. (t as TeamAttachmentInfo).InvitedNumber = Convert.ToInt32(dr["InvitedNumber"]);
  2306. (t as TeamAttachmentInfo).OfficialNumber = Convert.ToInt32(dr["OfficialNumber"]);
  2307. (t as TeamAttachmentInfo).PickNumber = Convert.ToInt32(dr["PickNumber"]);
  2308. (t as TeamAttachmentInfo).Oper = Convert.ToInt32(dr["Oper"]);
  2309. (t as TeamAttachmentInfo).OperDate = dr["OperDate"].ToString();
  2310. (t as TeamAttachmentInfo).Isdel = Convert.ToInt32(dr["Isdel"]);
  2311. break;
  2312. case "TravelUsers": // 外部用户登陆表 雷怡 2021-10-12 11:46
  2313. (t as TravelUsers).Id = Convert.ToInt32(dr["Id"]);
  2314. (t as TravelUsers).LoginName = dr["LoginName"].ToString();
  2315. (t as TravelUsers).LoginPassWord = dr["LoginPassWord"].ToString();
  2316. (t as TravelUsers).SubordinateUnits = dr["SubordinateUnits"].ToString();
  2317. (t as TravelUsers).CareteTime = dr["CareteTime"].ToString();
  2318. (t as TravelUsers).LoginState = Convert.ToInt32(dr["LoginState"]);
  2319. (t as TravelUsers).Oper = Convert.ToInt32(dr["Oper"]);
  2320. (t as TravelUsers).OperDate = dr["OperDate"].ToString();
  2321. (t as TravelUsers).Isdel = Convert.ToInt32(dr["Isdel"]);
  2322. break;
  2323. case "TravelUsersAndDiid": // 外部行程用户关联团组行程Diid表 雷怡 2021-10-12 11:48
  2324. (t as TravelUsersAndDiid).Id = Convert.ToInt32(dr["Id"]);
  2325. (t as TravelUsersAndDiid).TravelUsersId = Convert.ToInt32(dr["TravelUsersId"]);
  2326. (t as TravelUsersAndDiid).Diid = Convert.ToInt32(dr["Diid"]);
  2327. (t as TravelUsersAndDiid).Oper = Convert.ToInt32(dr["Oper"]);
  2328. (t as TravelUsersAndDiid).OperDate = dr["OperDate"].ToString();
  2329. (t as TravelUsersAndDiid).Isdel = Convert.ToInt32(dr["Isdel"]);
  2330. break;
  2331. case "TravelUsersLoginRecord": // 外部行程用户登陆记录 雷怡 2021-10-12 11:48
  2332. (t as TravelUsersLoginRecord).Id = Convert.ToInt32(dr["Id"]);
  2333. (t as TravelUsersLoginRecord).TravelUsersId = Convert.ToInt32(dr["TravelUsersId"]);
  2334. (t as TravelUsersLoginRecord).LoginAddress = dr["LoginAddress"].ToString();
  2335. (t as TravelUsersLoginRecord).LoginDeviceName = dr["LoginDeviceName"].ToString();
  2336. (t as TravelUsersLoginRecord).LoginMacAddress = dr["LoginMacAddress"].ToString();
  2337. (t as TravelUsersLoginRecord).LoginRealIPAddress = dr["LoginRealIPAddress"].ToString();
  2338. (t as TravelUsersLoginRecord).LoginIntranetIPAddress = dr["LoginIntranetIPAddress"].ToString();
  2339. (t as TravelUsersLoginRecord).LoginBrowser = dr["LoginBrowser"].ToString();
  2340. (t as TravelUsersLoginRecord).LoginBrowserType = dr["LoginBrowserType"].ToString();
  2341. (t as TravelUsersLoginRecord).LoginBrowserVersion = dr["LoginBrowserVersion"].ToString();
  2342. (t as TravelUsersLoginRecord).LoginDateTime = dr["LoginDateTime"].ToString();
  2343. break;
  2344. case "AssociationGroup": // 外部行程用户登陆记录 雷怡 2021-10-12 11:48
  2345. (t as AssociationGroup).id = Convert.ToInt32(dr["id"]);
  2346. (t as AssociationGroup).Ipid = Convert.ToInt32(dr["Ipid"]);
  2347. (t as AssociationGroup).IoaId = Convert.ToInt32(dr["IoaId"]);
  2348. (t as AssociationGroup).Diid = Convert.ToInt32(dr["Diid"]);
  2349. break;
  2350. case "AirAdvanceInquiry": // 外部行程用户登陆记录 雷怡 2021-10-12 11:48
  2351. (t as AirAdvanceInquiry).Id = Convert.ToInt32(dr["Id"]);
  2352. (t as AirAdvanceInquiry).Diid = Convert.ToInt32(dr["Diid"]);
  2353. (t as AirAdvanceInquiry).Area = dr["Area"].ToString();
  2354. (t as AirAdvanceInquiry).Airlines = dr["Airlines"].ToString();
  2355. (t as AirAdvanceInquiry).Shift = dr["Shift"].ToString();
  2356. (t as AirAdvanceInquiry).StartTime = dr["StartTime"].ToString();;
  2357. (t as AirAdvanceInquiry).EndTime =dr["EndTime"].ToString();
  2358. (t as AirAdvanceInquiry).SpaceType = dr["SpaceType"].ToString();
  2359. (t as AirAdvanceInquiry).SelectTime =dr["SelectTime"].ToString();;
  2360. (t as AirAdvanceInquiry).LowestPrice = float.Parse(dr["LowestPrice"].ToString());
  2361. (t as AirAdvanceInquiry).Remark =dr["Remark"].ToString();
  2362. (t as AirAdvanceInquiry).Oper = Convert.ToInt32(dr["Oper"]);
  2363. (t as AirAdvanceInquiry).OperDate =dr["OperDate"].ToString();
  2364. (t as AirAdvanceInquiry).Isdel = Convert.ToInt32(dr["Isdel"]);
  2365. (t as AirAdvanceInquiry).FullPrice = float.Parse(dr["FullPrice"].ToString());
  2366. (t as AirAdvanceInquiry).InstantPrice = float.Parse(dr["InstantPrice"].ToString());
  2367. break;
  2368. case "hotelidbreakfast": // 酒店早餐表
  2369. (t as hotelidbreakfast).Tid = Convert.ToInt32(dr["tid"]);
  2370. (t as hotelidbreakfast).Diid = Convert.ToInt32(dr["diid"]);
  2371. (t as hotelidbreakfast).Hotelid = dr["hotelid"].ToString();
  2372. (t as hotelidbreakfast).BreakfastPrice = float.Parse(dr["breakfastPrice"].ToString());
  2373. (t as hotelidbreakfast).Isdel = Convert.ToInt32(dr["isdel"]);
  2374. break;
  2375. case "opitineraryfixed": // 手册固定字段
  2376. (t as opitineraryfixed).Tid = Convert.ToInt32(dr["tid"]);
  2377. (t as opitineraryfixed).ItemPrepare = dr["itemPrepare"].ToString();
  2378. (t as opitineraryfixed).SpecialReminder = dr["specialReminder"].ToString();
  2379. (t as opitineraryfixed).CGPrecautions = dr["CGPrecautions"].ToString();
  2380. (t as opitineraryfixed).YGCG = dr["YGCG"].ToString();
  2381. (t as opitineraryfixed).Conduct = dr["Conduct"].ToString();
  2382. (t as opitineraryfixed).CommonEnglish = dr["CommonEnglish"].ToString();
  2383. break;
  2384. case "opitinerarydata": // 手册非固定字段
  2385. (t as opitinerarydata).Tid = Convert.ToInt32(dr["tid"]);
  2386. (t as opitinerarydata).Name = dr["name"].ToString();
  2387. (t as opitinerarydata).Introduction = dr["Introduction"].ToString();
  2388. (t as opitinerarydata).TimeDifference = dr["timeDifference"].ToString();
  2389. (t as opitinerarydata).CurrExchangeRate = float.Parse(dr["currExchangeRate"].ToString());
  2390. (t as opitinerarydata).Temperature = dr["temperature"].ToString();
  2391. break;
  2392. case "ViewbreakfastPrice":
  2393. (t as ViewbreakfastPrice).breakfastPrice = float.Parse(dr["breakfastPrice"].ToString());
  2394. (t as ViewbreakfastPrice).City = dr["City"].ToString();
  2395. (t as ViewbreakfastPrice).PaymentCurrency = int.Parse(dr["PaymentCurrency"].ToString());
  2396. (t as ViewbreakfastPrice).HotelName = dr["HotelName"].ToString();
  2397. (t as ViewbreakfastPrice).PayMoney = float.Parse(dr["PayMoney"].ToString());
  2398. (t as ViewbreakfastPrice).DayRate = float.Parse(dr["DayRate"].ToString());
  2399. (t as ViewbreakfastPrice).RMBPrice = float.Parse(dr["RMBPrice"].ToString());
  2400. (t as ViewbreakfastPrice).PayCurrencyName = dr["PayCurrencyName"].ToString();
  2401. break;
  2402. case "TrainingExpenses":
  2403. (t as TrainingExpenses).id = int.Parse(dr["id"].ToString());
  2404. (t as TrainingExpenses).continent = dr["continent"].ToString();
  2405. (t as TrainingExpenses).country = dr["country"].ToString();
  2406. (t as TrainingExpenses).currency = dr["currency"].ToString();
  2407. (t as TrainingExpenses).expense = float.Parse(dr["expense"].ToString());
  2408. (t as TrainingExpenses).operationTime = DateTime.Parse(dr["operationTime"].ToString());
  2409. (t as TrainingExpenses).operationUser = dr["operationUser"].ToString();
  2410. (t as TrainingExpenses).isdel = int.Parse(dr["isdel"].ToString());
  2411. break;
  2412. case "Position":
  2413. (t as Position).Id = int.Parse(dr["id"].ToString());
  2414. (t as Position).JobTitleCn = dr["JobTitleCn"].ToString();
  2415. (t as Position).JobTitleEn = dr["JobTitleEn"].ToString();
  2416. (t as Position).SetDataId = int.Parse(dr["SetDataId"].ToString());
  2417. (t as Position).IsDel = int.Parse(dr["IsDel"].ToString());
  2418. break;
  2419. case "ApprovalTravelDetails":
  2420. (t as ApprovalTravelDetails).Id = int.Parse(dr["id"].ToString());
  2421. (t as ApprovalTravelDetails).Time = dr["Time"].ToString();
  2422. (t as ApprovalTravelDetails).ParentId =int.Parse(dr["parentId"].ToString());
  2423. (t as ApprovalTravelDetails).Details = dr["Details"].ToString();
  2424. (t as ApprovalTravelDetails).IsDel = int.Parse(dr["isdel"].ToString());
  2425. break;
  2426. case "grouopExceed":
  2427. (t as grouopExceed).Id = Convert.ToInt32(dr["Id"]);
  2428. (t as grouopExceed).DIID = Convert.ToInt32(dr["DIID"]);
  2429. (t as grouopExceed).PriceName = dr["PriceName"].ToString();
  2430. (t as grouopExceed).Price = string.IsNullOrWhiteSpace(dr["Price"].ToString()) ? 0.00M : decimal.Parse(dr["Price"].ToString());
  2431. (t as grouopExceed).Currency = Convert.ToInt32(dr["Currency"]);
  2432. (t as grouopExceed).FilePath = dr["FilePath"].ToString();
  2433. (t as grouopExceed).Remark = dr["Remark"].ToString();
  2434. (t as grouopExceed).Operators = Convert.ToInt32(dr["operators"]);
  2435. (t as grouopExceed).OperatorsDate = dr["OperatorsDate"].ToString();
  2436. (t as grouopExceed).IsDel = Convert.ToInt32(dr["IsDel"]);
  2437. (t as grouopExceed).PriceType = string.IsNullOrWhiteSpace(dr["PriceType"].ToString()) ? 0 : int.Parse(dr["PriceType"].ToString());
  2438. (t as grouopExceed).coefficient = string.IsNullOrWhiteSpace(dr["coefficient"].ToString()) ? 0.00M : decimal.Parse(dr["coefficient"].ToString());
  2439. (t as grouopExceed).PriceTypeDetail = string.IsNullOrWhiteSpace(dr["PriceTypeDetail"].ToString()) ? 0 : int.Parse(dr["PriceTypeDetail"].ToString());
  2440. break;
  2441. case "CostTypeHotelNumber":
  2442. (t as CostTypeHotelNumber).id = string.IsNullOrWhiteSpace(dr["id"].ToString()) ? 0 : int.Parse(dr["id"].ToString());
  2443. (t as CostTypeHotelNumber).ASGR = string.IsNullOrWhiteSpace(dr["ASGR"].ToString()) ? 0 : int.Parse(dr["ASGR"].ToString());
  2444. (t as CostTypeHotelNumber).BSGR = string.IsNullOrWhiteSpace(dr["BSGR"].ToString()) ? 0 : int.Parse(dr["BSGR"].ToString());
  2445. (t as CostTypeHotelNumber).ATBR = string.IsNullOrWhiteSpace(dr["ATBR"].ToString()) ? 0 : int.Parse(dr["ATBR"].ToString());
  2446. (t as CostTypeHotelNumber).BTBR = string.IsNullOrWhiteSpace(dr["BTBR"].ToString()) ? 0 : int.Parse(dr["BTBR"].ToString());
  2447. (t as CostTypeHotelNumber).AJSES = string.IsNullOrWhiteSpace(dr["AJSES"].ToString()) ? 0 : int.Parse(dr["AJSES"].ToString());
  2448. (t as CostTypeHotelNumber).BJSES = string.IsNullOrWhiteSpace(dr["BJSES"].ToString()) ? 0 : int.Parse(dr["BJSES"].ToString());
  2449. (t as CostTypeHotelNumber).ASUITE = string.IsNullOrWhiteSpace(dr["ASUITE"].ToString()) ? 0 : int.Parse(dr["ASUITE"].ToString());
  2450. (t as CostTypeHotelNumber).BSUITE = string.IsNullOrWhiteSpace(dr["BSUITE"].ToString()) ? 0 : int.Parse(dr["BSUITE"].ToString());
  2451. (t as CostTypeHotelNumber).DIID = string.IsNullOrWhiteSpace(dr["DIID"].ToString()) ? 0 : int.Parse(dr["DIID"].ToString());
  2452. (t as CostTypeHotelNumber).IsDel = string.IsNullOrWhiteSpace(dr["IsDel"].ToString()) ? 0 : int.Parse(dr["IsDel"].ToString());
  2453. break;
  2454. case "grouopExceedView":
  2455. (t as grouopExceedView).TeamName = dr["TeamName"].ToString(); ;
  2456. (t as grouopExceedView).operatorsDate = dr["operatorsDate"].ToString();
  2457. (t as grouopExceedView).PriceType = Convert.ToInt32(dr["PriceType"]);
  2458. (t as grouopExceedView).PriceName = dr["PriceName"].ToString();
  2459. (t as grouopExceedView).Price = string.IsNullOrWhiteSpace(dr["Price"].ToString()) ? 0.00F : float.Parse(dr["Price"].ToString());
  2460. (t as grouopExceedView).Currency = dr["Currency"].ToString();
  2461. (t as grouopExceedView).DayRate = string.IsNullOrWhiteSpace(dr["DayRate"].ToString()) ? 0.00F : float.Parse(dr["DayRate"].ToString());
  2462. (t as grouopExceedView).RMBPrice = string.IsNullOrWhiteSpace(dr["RMBPrice"].ToString()) ? 0.00F : float.Parse(dr["RMBPrice"].ToString());
  2463. (t as grouopExceedView).Coefficient = string.IsNullOrWhiteSpace(dr["Coefficient"].ToString()) ? 0.00M : decimal.Parse(dr["Coefficient"].ToString());
  2464. (t as grouopExceedView).remark = dr["remark"].ToString();
  2465. break;
  2466. case "VisaCommission":
  2467. (t as VisaCommission).Id = Convert.ToInt32(dr["Id"]);
  2468. (t as VisaCommission).DiId = Convert.ToInt32(dr["DiId"]);
  2469. (t as VisaCommission).UId = Convert.ToInt32(dr["UId"]);
  2470. (t as VisaCommission).Number = Convert.ToInt32(dr["Number"]);
  2471. (t as VisaCommission).Nation = dr["Nation"].ToString();
  2472. (t as VisaCommission).CreateUserId = Convert.ToInt32(dr["CreateUserId"]);
  2473. (t as VisaCommission).CreateDateTime = dr["CreateDateTime"].ToString();
  2474. (t as VisaCommission).Remark = dr["Remark"].ToString();
  2475. (t as VisaCommission).IsDel = Convert.ToInt32(dr["IsDel"]);
  2476. break;
  2477. case "PositionEnglishComparison":
  2478. (t as PositionEnglishComparison).Id = Convert.ToInt32(dr["Id"]);
  2479. (t as PositionEnglishComparison).zhName = dr["zhName"].ToString();
  2480. (t as PositionEnglishComparison).enName = dr["enName"].ToString();
  2481. break;
  2482. }
  2483. tList.Add(t);
  2484. }
  2485. }
  2486. }
  2487. return tList;
  2488. }
  2489. }
  2490. }