<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>การซ่อม</title> <script type="text/javascript"> function aa(rows,id) { alert(rows); alert(id); var tmp = id.split("_"); var j = 1; var sum = 0; for( i = 0 ; i < rows ; i++) { var mixname =tmp[0] + "ctl0" + j + tmp[2]; if (document.getElementById(mixname).value == "") { document.getElementById(mixname).value = 0; } sum = eval(sum) + eval(document.getElementById(mixname).value); // alert(document.getElementById(mixname).value); // alert(id) // alert(mixname); // alert(tmp[0] + tmp[1] + tmp[2]); document.getElementById("Textbox") } document.getElementById("TxtLab1").value = sum; } function Checknum() { var chk = document.getElementById('ctl0_j_GridView1').value; if (isNaN(chk)) { alert('กรุณากรอกข้อมูลเป็นตัวเลข ค่ะ !!!'); return false; } return true; } </script> </head> <body> <form id="form1" runat="server"> <h2 style="text-align: center">การซ่อม</h2> <div> <table style="width:100%;"> <tr> <td> </td> <td colspan="2"> </td> <td> <asp:Label ID="Label1" runat="server" Text="Date::"></asp:Label> </td> <td style="text-align: left"> <asp:TextBox ID="TxtDateToday" runat="server" ReadOnly="True" style="text-align: left"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="Label3" runat="server" Text="Ref::"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="TxtRef" runat="server"></asp:TextBox> </td> <td> <asp:Label ID="Label29" runat="server" Text="Rev::"></asp:Label> </td> <td> <asp:TextBox ID="TxtRev" runat="server"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="Label2" runat="server" Text="EOR No::"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="Ddlloc" runat="server"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </td> <td> <asp:Label ID="Label5" runat="server" Text="Repair Type ::"></asp:Label> </td> <td> <asp:DropDownList ID="DdlReType" runat="server"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label4" runat="server" Text="Container No ::"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="Txtconid" runat="server"></asp:TextBox> </td> <td> <asp:Label ID="Label6" runat="server" Text="TaRiff"></asp:Label> </td> <td> <asp:DropDownList ID="DdlTariff" runat="server"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label7" runat="server" Text="Currency ::"></asp:Label> </td> <td colspan="2"> <asp:DropDownList ID="DdlCurency" runat="server"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </td> <td> <asp:Label ID="Label9" runat="server" Text="ISO SIZE/TYPE" Width="148px"></asp:Label> </td> <td> <asp:DropDownList ID="DdlIsosize" runat="server"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label8" runat="server" Text="DOM(mm/yyyy)" Width="120px"></asp:Label> </td> <td colspan="2"> <asp:TextBox ID="TxtDom" runat="server"></asp:TextBox> </td> <td> </td> <td> </td> </tr> <tr> <td> <asp:Label ID="Label31" runat="server" Text="Orig Est."></asp:Label> </td> <td> <asp:TextBox ID="TxtEst" runat="server"></asp:TextBox> <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TxtEst" Format="dd/MM/yyyy" > </asp:CalendarExtender> </td> <td> <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </asp:ToolkitScriptManager> </td> <td> <asp:Label ID="Label15" runat="server" Text="Status::"></asp:Label> </td> <td> <asp:DropDownList ID="Ddlstatus" runat="server"> <asp:ListItem>Approved</asp:ListItem> <asp:ListItem>Pending</asp:ListItem> <asp:ListItem>Verified</asp:ListItem> <asp:ListItem>Dispute</asp:ListItem> <asp:ListItem>Completed</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td> <asp:Label ID="Label30" runat="server" Text="Lastest Est."></asp:Label> </td> <td> <asp:TextBox ID="TxtLEst" runat="server"></asp:TextBox> <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TxtLEst" Format="dd/MM/yyyy"> </asp:CalendarExtender> </td> <td> </td> <td> <asp:Label ID="Label12" runat="server" Text="Labour ::"></asp:Label> </td> <td> <asp:TextBox ID="TxtLab1" runat="server" ReadOnly="True"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="Label10" runat="server" Text="Gate In ::"></asp:Label> </td> <td> <asp:TextBox ID="TxtGateIn" runat="server"></asp:TextBox> <asp:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TxtGateIn" Format="dd/MM/yyyy"> </asp:CalendarExtender> </td> <td> </td> <td> <asp:Label ID="Label13" runat="server" Text="Mat::"></asp:Label> </td> <td> <asp:TextBox ID="TxtMat1" runat="server" ReadOnly="True"></asp:TextBox> </td> </tr> <tr> <td> <asp:Label ID="Label11" runat="server" Text="Completion::"></asp:Label> </td> <td> <asp:TextBox ID="TxtCompletion" runat="server"> </asp:TextBox><asp:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="TxtCompletion" Format ="dd/MM/yyyy"> </asp:CalendarExtender> </td> <td> </td> <td> <asp:Label ID="Label14" runat="server" Text="ToTal::"></asp:Label> </td> <td> <asp:TextBox ID="Txttotal" runat="server" AutoPostBack="true " ReadOnly="True"></asp:TextBox> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> <asp:Label ID="Label33" runat="server" Text="DMG::"></asp:Label> </td> <td> <asp:TextBox ID="Txtdmg" runat="server" ReadOnly="True"></asp:TextBox> </td> </tr> <tr> <td> </td> <td> </td> <td style="text-align: center"> <asp:Label ID="Lmsg" runat="server" Font-Bold="True" ForeColor="Red" Text="Msg" Visible="False" style="text-align: center"></asp:Label> </td> <td> </td> <td> </td> </tr> <tr> <td> <asp:Label ID="Label32" runat="server" Text="Template No." Width="92px"></asp:Label></td> <td> <asp:TextBox ID="TxtTempno" runat="server" Width="100px"></asp:TextBox> <asp:Button ID="Btnok" runat="server" Text="ตกลง" /></td> <td> </td> <td> <asp:Label ID="Label16" runat="server" Text="No."></asp:Label> <asp:TextBox ID="TxtReDe_id" runat="server" ReadOnly="True"></asp:TextBox></td> <td> </td> </tr> </table></div> <h3 style="text-align: center">รายละเอียดการซ่อม</h3> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderStyle="Dashed" CellPadding="4" ForeColor="#333333" GridLines="None"> <RowStyle BackColor="#EFF3FB" /> <Columns> <asp:BoundField DataField="Loc" HeaderText="Location" /> <asp:TemplateField HeaderText="Component"> <ItemTemplate> <asp:DropDownList ID="DdlCom" runat="server" AppendDataBoundItems="True" AutoPostBack="True" Width="100px"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="DMG"> <ItemTemplate> <asp:DropDownList ID="DdlDmg" runat="server" AppendDataBoundItems="True" AutoPostBack="True" Width="100px"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Repair"> <ItemTemplate> <asp:DropDownList ID="DdlRepair" runat="server" AppendDataBoundItems="True" AutoPostBack="True" Width="100px"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Type"> <ItemTemplate> <asp:DropDownList ID="DDdlType" runat="server" Width="100px"> <asp:ListItem>-กรุณาเลือก-</asp:ListItem> <asp:ListItem>DMG</asp:ListItem> <asp:ListItem>W/T</asp:ListItem> <asp:ListItem>I/R</asp:ListItem> <asp:ListItem>CLE</asp:ListItem> <asp:ListItem>UPG</asp:ListItem> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="QTY"> <ItemTemplate> <asp:TextBox ID="TxtQty" runat="server" Width="50px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="L"> <ItemTemplate> <asp:TextBox ID="TxtL" runat="server" Width="50px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="W"> <ItemTemplate> <asp:TextBox ID="TxtW" runat="server" Width="50px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Hour"> <ItemTemplate> <asp:TextBox ID="TxtHour" runat="server" Width="50px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Lobour"> <ItemTemplate> <asp:TextBox ID="TxtLabour" runat="server" Width="80px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Material"> <ItemTemplate> <asp:TextBox ID="TxtMaterial" runat="server" Width="80px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Cost"> <ItemTemplate> <asp:TextBox ID="TxtCost" runat="server" ReadOnly="True" Width="80px"></asp:TextBox> </ItemTemplate> </asp:TemplateField> </Columns> <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /> <EditRowStyle BackColor="#2461BF" /> <AlternatingRowStyle BackColor="White" /> </asp:GridView> <div> <table align="center"> <tr> <td> <asp:Button ID="btnAdd" runat="server" Text="เพิ่ม" /></td> <td><asp:Button ID="btnCancle" runat="server" Text="ยกเลิก" /></td> <td><asp:Button ID="btnaddpic" runat="server" Text="เพิ่มรูปภาพรอยแผลตู้" /></td> <td style="text-align: center"><asp:Button ID="btnShow" runat="server" Text="แสดงข้อมูล" /> </td> </tr> </table></div> <asp:Panel ID="Panel2" runat="server" style="text-align: center" Visible="False" Width="270px"> <div align="center"> <h3> อัพโหลดรูปภาพที่ท่านต้องการ</h3> <asp:FileUpload ID="FileUpload1" runat="server" /> <br /> <asp:FileUpload ID="FileUpload2" runat="server" /> <br /> <asp:FileUpload ID="FileUpload3" runat="server" /> <br /> <asp:FileUpload ID="FileUpload4" runat="server" /> <br /> <asp:FileUpload ID="FileUpload5" runat="server" /> <br /> <asp:Label ID="Label17" runat="server" Font-Bold="True" ForeColor="Red" Text="[MSG]" Visible="False"></asp:Label> <br /> <asp:Button ID="btnpic" runat="server" Text="ตกลง" /> </div> </asp:Panel> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง