Advertisement
ugurhangul

Untitled

Dec 11th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.07 KB | None | 0 0
  1. @model List<MbtSolution.Models.Database.Tables.DailyReport>
  2. @{ Layout = null;}
  3.  
  4.  
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <style>
  9. .table {
  10. margin: 0px;
  11. padding: 0px;
  12. border: 3px solid #ff7f00;
  13. border-bottom: 0;
  14. }
  15.  
  16. .table table {
  17. border-collapse: collapse;
  18. border-spacing: 0;
  19. width: 100%;
  20. height: 100%;
  21. margin: 0px;
  22. padding: 0px;
  23. }
  24.  
  25. .table tr:nth-child(odd) {
  26. background-color: #ffaa56;
  27. }
  28.  
  29. .table tr:nth-child(even) {
  30. background-color: #ffffff;
  31. }
  32.  
  33. .table td {
  34. vertical-align: middle;
  35. border: 1px solid #808080;
  36. border-width: 1px 1px 1px 1px;
  37. text-align: left;
  38. padding: 7px;
  39. font-size: 10px;
  40. font-family: Verdana;
  41. color: #000000;
  42. }
  43.  
  44. label {
  45. font-weight: bold;
  46. }
  47.  
  48. .dikey {
  49. transform: rotate(-90deg);
  50. }
  51.  
  52. .table tr:first-child td {
  53. background-color: #ff7f00;
  54. border: 1px solid #808080;
  55. text-align: center;
  56. border-width: 1px 1px 1px 1px;
  57. font-size: 14px;
  58. font-family: Verdana;
  59. font-weight: bold;
  60. color: #ffffff;
  61. }
  62. </style>
  63. <title></title>
  64. <meta charset="utf-8" />
  65. </head>
  66. <body>
  67.  
  68.  
  69. Merhabalar;
  70. <br />
  71. <br />
  72.  
  73. <p>@DateTime.Now.ToShortDateString() tarihi itibari ile operasyonda bulunan gemilere ait rapor aşağıdaki gibi sunulmuştur.</p>
  74.  
  75. <div class="table">
  76. <table>
  77. <tr style="background-color: #ff7f00;">
  78. <td colspan="2">
  79. No
  80. </td>
  81. <td>
  82. Date
  83. </td>
  84. <td>
  85. Time
  86. </td>
  87. <td>
  88. Vessel
  89. </td>
  90. <td>
  91. Ref No
  92. </td>
  93. <td>
  94. Port
  95. </td>
  96. <td>
  97. Cargo
  98. </td>
  99. <td>
  100. PSN
  101. </td>
  102. <td >
  103. Discharge Details
  104. </td>
  105. <td >
  106. Weather
  107. </td>
  108. <td>
  109. Tools
  110. </td>
  111. </tr>
  112. @{
  113. int i = 1;
  114. }
  115. @foreach (var item in Model)
  116. {
  117.  
  118. <tr>
  119. <td>
  120. @i
  121. </td>
  122. <td class="dikey">
  123. @if (item.Vop != null)
  124. {
  125. @item.Vop.PoexNo
  126. }
  127.  
  128. </td>
  129. <td>
  130. @item.DateTime.ToShortDateString()
  131. </td>
  132. <td>
  133. @item.DateTime.ToShortTimeString()
  134. </td>
  135. <td>
  136. @if (item.Vop != null)
  137. {
  138. if (item.Vop.Vessel != null)
  139. {
  140. @item.Vop.Vessel.Title
  141. }
  142. }
  143. </td>
  144. <td>
  145. @if (item.Vop != null)
  146. {
  147. @item.Vop.RefNo
  148. }
  149. </td>
  150. <td>
  151. @if (item.Vop != null)
  152. {
  153. if (item.Vop.DischargingPort != null)
  154. {
  155. @item.Vop.DischargingPort.Title
  156. }
  157. }
  158. </td>
  159. <td>
  160. @if (item.Vop != null)
  161. {
  162. if (item.Vop.Cargo != null)
  163. {
  164. @item.Vop.Cargo.Title
  165. }
  166. }
  167. </td>
  168. <td class="dikey">
  169. <label>@item.Situation</label>
  170. </td>
  171. <td style="text-align: left; border-right: 0; vertical-align: top;">
  172. <table>
  173. <tr>
  174. <td><label>B/L Quantity (mton/air)</label></td>
  175. <td>
  176. <label>
  177. @if (item.Vop != null)
  178. {
  179. @item.Vop.CargoQuantity
  180. }
  181. </label>
  182. </td>
  183. </tr>
  184. <tr>
  185. <td><label>Discharged Quantity(mton/air)</label></td>
  186. <td><label>@item.DischargedQuantity</label></td>
  187. </tr>
  188. <tr>
  189. <td><label>Remain on Board(mton/air)</label></td>
  190. <td><label>@item.Rob</label></td>
  191. </tr>
  192. <tr>
  193. <td><label>Rate (mton/h)</label></td>
  194. <td><label>@item.Rate</label></td>
  195. </tr>
  196. <tr>
  197. <td><label>Avr. Discharge Rate (mton/h)</label></td>
  198. <td><label>@item.AverageRate</label></td>
  199. </tr>
  200. <tr>
  201. <td><label>Backpressure At Ship Manifold (kg/cm2)</label></td>
  202. <td><label>@item.BackpressureAtShipManifold</label></td>
  203. </tr>
  204. <tr>
  205. <td><label>ETC</label></td>
  206. <td><label>@item.Etc</label></td>
  207. </tr>
  208.  
  209. </table>
  210. </td>
  211.  
  212. <td style="vertical-align:top; border-right:0;">
  213. <table>
  214. <tr>
  215. <td><label>Sea</label></td>
  216. <td><label>
  217. @if (item.Sea != null)
  218. {
  219. @item.Sea.SeaLevel
  220. } &nbsp; @item.SeaDirection</label></td>
  221. </tr>
  222. <tr>
  223. <td><label>Weather</label></td>
  224. <td><label>
  225. @if (item.Wind != null)
  226. {
  227. @item.Wind.Bofor
  228. } &nbsp; @item.WindDirection</label></td>
  229. </tr>
  230. <tr>
  231. <td><label>Temprature</label></td>
  232. <td><label>@item.Temprature &nbsp; C</label></td>
  233. </tr>
  234.  
  235. </table>
  236. </td>
  237. <td>
  238. <a href="http://superintendent.mbtshipping.com/Vop/EditVop/@item.VopId">See Vop Details</a>
  239. </td>
  240. </tr>
  241. <tr style="border-bottom: 5px solid #ff6a00; background-color: #ff7f00;">
  242. <td colspan="2">
  243. <label>Remarks</label>
  244.  
  245. </td>
  246. <td colspan="11">
  247. @item.Description
  248. </td>
  249. <td></td>
  250.  
  251. </tr>
  252. i = i + 1;
  253.  
  254. }
  255.  
  256. </table>
  257. </div>
  258.  
  259. <br />
  260.  
  261. Saygılarımızla,
  262. <br />
  263. <br />
  264.  
  265.  
  266. <p>
  267. Cpt.Levent TERZİOĞLU | Operasyon Müdürü | Operation Manager
  268. <br />
  269. <br />
  270. <img src="http://superintendent.mbtshipping.com/Content/logo.png" />
  271. <br />
  272.  
  273. MBT Superintendence & Marine Consulting Ltd.
  274. <br />
  275. Kemalpasa Mah. Caglayan Is Mrk. No.1/37 41200 Izmit/Kocaeli
  276. <br />
  277. T:+90 262 321 1058 F:+90 262 322 1058 M:+90 532 330 7546
  278. <br />
  279. expedition@mbtshipping.com | www.mbtshipping.com
  280. </body>
  281. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement