<asp:View ID="ViewDevis4" runat="server">
<asp:Label ID="Label5" runat="server" Text="Choisir l'année que vous voulez : " Font-Bold="True" Font-Underline="True" BackColor="#FF9966"></asp:Label>
<asp:DropDownList ID="DropDownList4" runat="server" Height="18px" Width="199px" AutoPostBack="True" BackColor="#CCCC00" Font-Bold="True" Font-Italic="True" ForeColor="#660066" CssClass="auto-style42"></asp:DropDownList>
<%-- <asp:GridView ID="GridView8" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical" Width="100%">
<AlternatingRowStyle BackColor="#CCCCCC" />
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView>--%>
<asp:Panel ID="Panel3" runat="server" Height="731px" ScrollBars="Vertical" Width="100%">
<asp:GridView ID="GridView8" runat="server" Height="100%" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" Width="100%" OnRowDataBound="OnRowDataBound">
<AlternatingRowStyle BackColor="#CCCCCC" />
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<RowStyle HorizontalAlign="Left" VerticalAlign="Middle" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView>
</asp:Panel>
<input type="hidden" id="HeadertTxt2" name="HeadertTxt2" value=""/>
<asp:Button ID="Button7" Text="Get" runat="server" OnClick="OnGet2" Style="display: none;" />
<script type = "text/javascript">
function GetHeaderText2(txt) {
// alert(txt);
document.getElementById("HeadertTxt2").value = txt;
document.getElementById('<%=Button7.ClientID%>').click();
}
</script>
</asp:View>
<asp:View ID="ViewFactureDetail" runat="server">
<asp:Panel ID="Panel5" runat="server" Height="731px" ScrollBars="Vertical" Width="100%">
<asp:GridView ID="GridView10" runat="server" Height="100%" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%" GridLines="Vertical">
<AlternatingRowStyle BackColor="#DCDCDC" />
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<RowStyle HorizontalAlign="Left" VerticalAlign="Middle" BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#0000A9" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#000065" />
</asp:GridView>
<asp:Button ID="Button4" runat="server" Text="retour" />
</asp:Panel>
</asp:View>
<asp:View ID="View1" runat="server">
<asp:Panel ID="Panel6" runat="server" Height="731px" ScrollBars="Vertical" Width="100%">
<asp:GridView ID="GridView11" runat="server" Height="100%" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%" GridLines="Vertical">
<AlternatingRowStyle BackColor="#DCDCDC" />
<FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
<HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<RowStyle HorizontalAlign="Left" VerticalAlign="Middle" BackColor="#EEEEEE" ForeColor="Black" />
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#0000A9" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#000065" />
</asp:GridView>
<asp:Button ID="Button5" runat="server" Text="retour" />
</asp:Panel>
</asp:View>
<%-- <asp:View ID="ViewRecherchesAvancées5" runat="server">--%>
<%-- <asp:Button ID="Button4" runat="server" Text="Button" OnClientClick='<%# String.Format(Eval("année"), Eval("Bon_de_LIVRAISON"), Eval("Date"),
Eval("CT_Num"), Eval("CT_INTITULE"), Eval("référence"), Eval("Désignation"), Eval("Qte"),
Eval("PU"), Eval("REM")) %>'/>
<asp:GridView ID="GridView9" runat="server" AutoGenerateColumns="false" Width="1122px">
<Columns>
<asp:BoundField DataField="année" HeaderText="année" ItemStyle-Width="90" />
<asp:BoundField DataField="Bon_de_LIVRAISON" HeaderText="Bon_de_LIVRAISON" ItemStyle-Width="120" />
<asp:BoundField DataField="Date" HeaderText="Date" ItemStyle-Width="100" />
<asp:BoundField DataField="CT_Num" HeaderText="CT_Num" ItemStyle-Width="100" />
<asp:BoundField DataField="CT_INTITULE" HeaderText="CT_INTITULE" ItemStyle-Width="100" />
<asp:BoundField DataField="référence" HeaderText="référence" ItemStyle-Width="100" />
<asp:BoundField DataField="Désignation" HeaderText="Désignation" ItemStyle-Width="100" />
<asp:BoundField DataField="Qte" HeaderText="Qte" ItemStyle-Width="100" />
<asp:BoundField DataField="PU" HeaderText="PU" ItemStyle-Width="100" />
<asp:BoundField DataField="REM" HeaderText="REM" ItemStyle-Width="100" />
<%--<asp:TemplateField>--%>
<%-- <ItemTemplate>
<asp:Button Text="View" runat="server" OnClientClick='<%# String.Format("return ViewDetails({0}, ""{1}"", ""{2}"");", Eval("Id"), Eval("Name"), Eval("Country")) %>' />
</ItemTemplate>--%>
<%--</asp:TemplateField>--%>
<%-- </Columns>
</asp:GridView>
<script type="text/javascript">
function ViewDetails(année, Bon_de_LIVRAISON, Date,CT_Num,CT_INTITULE,référence,Désignation,Qte,PU,REM) {
var message = "année: " + année;
message += "Bon_de_LIVRAISON: " + Bon_de_LIVRAISON;
message += "Date: " + Date;
message += "\nCT_Num: " + CT_Num;
message += "\nCT_INTITULE: " + CT_INTITULE;
message += "\nréférence: " + référence;
message += "\nDésignation: " + Désignation;
message += "\nQte: " + Qte;
message += "\nPU: " + PU;
message += "\nREM: " + REM;
alert(message);
return false;
}
</script>--%>
<%-- </asp:View>--%>
<asp:View ID="View2" runat="server">
<asp:Panel ID="Panel9" runat="server" Height="731px" ScrollBars="Vertical" Width="100%">
<asp:GridView ID="GridView12" runat="server" Height="100%" Width="99%" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4">
<FooterStyle BackColor="White" ForeColor="#333333" />
<HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#333333" />
<SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F7F7F7" />
<SortedAscendingHeaderStyle BackColor="#487575" />
<SortedDescendingCellStyle BackColor="#E5E5E5" />
<SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>
<asp:Button ID="Retour" runat="server" Text="Retour" Width="138px" BorderColor="#993300" BorderStyle="Groove" BorderWidth="2px" ForeColor="Maroon" BackColor="#CC9900" Font-Bold="True" Font-Italic="True" />
</asp:Panel>
</asp:View>
</asp:MultiView>
<asp:ScriptManager ID="asm" runat="server" />
<ajaxToolkit:ModalPopupExtender ID="mpe2" runat="server"
TargetControlId="Button3" PopupControlID="ModalPanel"
OkControlID="OKButton" BackgroundCssClass="modalBackground" />
<asp:Panel ID="ModalPanel" runat="server" BackColor="White" BorderColor="#000099" BorderStyle="Groove" CssClass="auto-style36" Visible="false" BorderWidth="2px" ScrollBars="Vertical">
<asp:GridView ID="GridView9" runat="server" Height="264px" Width="1152px" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4">
<FooterStyle BackColor="White" ForeColor="#333333" />
<HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#333333" />
<SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F7F7F7" />
<SortedAscendingHeaderStyle BackColor="#487575" />
<SortedDescendingCellStyle BackColor="#E5E5E5" />
<SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>
<asp:Button ID="OKButton" runat="server" Text="fermer" Height="25px" Width="107px" />
</asp:Panel>
<script type="text/javascript">
function setPopup() {
var pop = $find("mpe");
var scr = screen.width;
if (pop != null) {
pop.set_X(scr * 0.7);
pop.set_Y(scr * 0.5);
}
}
</script>
<ajaxToolkit:ModalPopupExtender ID="mpe" runat="server"
TargetControlId="Button8" PopupControlID="ModalPanel2"
OkControlID="Button6" BackgroundCssClass="modalBackground2" />
<asp:Panel ID="ModalPanel2" runat="server" BackColor="White" BorderColor="#000099" BorderStyle="Groove" CssClass="auto-style158" BorderWidth="2px" >
<tr">
<asp:Label ID="Label6" runat="server" Text="Creation d'un nouvelle DEVIS CLIENT:"></asp:Label>
</tr">
Client :
<asp:TextBox ID="TextBox3" runat="server" Width="205px"></asp:TextBox>
<asp:HiddenField ID="hfName" runat="server" />
<script type="text/javascript">
$(function () {
$("[id*=TextBox3]").autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetNames") %>',
data: "{ 'prefix': '" + request.term + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
response($.map(data.d, function (item) {
return {
label: item.split('-')[0],
val: item.split('-')[1]
}
}))
},
error: function (response) {
alert(response.responseText);
}
});
},
select: function (e, i) {
$("[id$=hfName]").val(i.item.label);
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetCountry") %>',
data: "{ 'name': '" + i.item.label + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$("[id*=TextBox4]").val(response.d.split('-')[0]);
$("[id*=TextBox6]").val(response.d.split('-')[1]);
},
error: function (response) {
alert(response.responseText);
}
});
},
minLength: 0
});
});
</script>
<%-- <script type="text/javascript">
$(function () {
$("[id*=TextBox3]").autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetNames") %>',
data: "{ 'prefix': '" + request.term + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
response($.map(data.d, function (item) {
return {
label: item.split('-')[0],
val: item.split('-')[1]
}
}))
},
error: function (response) {
alert(response.responseText);
}
});
},
select: function (e, i) {
$("[id$=hfName]").val(i.item.label);
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetCountry") %>',
data: "{ 'name': '" + i.item.label + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$("[id*=TextBox4]").val(response.d);
},
error: function (response) {
alert(response.responseText);
}
});
},
minLength: 0
});
});
</script>--%>
Numero :
<asp:TextBox ID="TextBox4" runat="server" Width="82px" ></asp:TextBox>
<script type="text/javascript">
$(document).ready(function () {
$("#<%=TextBox4.ClientID %>").autocomplete({
source: function (request, response) {
$('TextBox9').attr('style', request.term == "9999" ? 'display:block;' : 'display:none;');
$('#Label20').attr('style', request.term == "9999" ? 'display:normal;' : 'display:none;');
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetNames2") %>',
data: "{ 'prefix': '" + request.term + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
$('TextBox9').attr('style', request.term == "9999" ? 'display:block;' : 'display:none;');
$('#Label20').attr('style', request.term == "9999" ? 'display:normal;' : 'display:none;');
response($.map(data.d, function (item) {
return {
label: item.split('-')[0],
val: item.split('-')[1]
}
}))
},
error: function (response) {
alert(response.responseText);
}
});
},
select: function (e, i) {
$("[id$=hfName]").val(i.item.label);
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetCountry2") %>',
data: "{ 'name': '" + i.item.label + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$('TextBox9').attr('style', request.term == "9999" ? 'display:block;' : 'display:none;');
$('#Label20').attr('style', request.term == "9999" ? 'display:normal;' : 'display:none;');
$("[id*=TextBox3]").val(response.d.split('-')[0]);
$("[id*=TextBox6]").val(response.d.split('-')[1]);
},
error: function (response) {
alert(response.responseText);
}
});
},
minLength: 0
});
});
</script>
<%-- <script type="text/javascript">
$(document).ready(function() {
$("#<%=TextBox4.ClientID%>").autocomplete('Search_VB6.ashx');
});
</script> --%>
<asp:Button ID="Button9" runat="server" Text="Creation" UseSubmitBehavior="False" OnClientClick="this.disabled='True';this.value='Patientez...';"/>
<asp:Label ID="Label19" runat="server" ForeColor="Red"></asp:Label>
Matricule fiscale :
<asp:TextBox ID="TextBox6" runat="server" Width="205px"></asp:TextBox>
<%-- <asp:Panel ID="Panel11" runat="server" Visible="true">--%>
<asp:Label ID="Label20" runat="server" Text="Client divers:"></asp:Label>
<%-- <input type="text" id="lname" name="lname" style="display:none;">--%>
<asp:TextBox ID="TextBox9" runat="server" Width="135px"></asp:TextBox>
<%-- </asp:Panel>--%>
<%----%>
<asp:Label ID="Label23" runat="server" Text="Machine:" ></asp:Label> <asp:TextBox ID="TextBox10" runat="server" Width="186px"></asp:TextBox>
<%-- <script type="text/javascript">
$(function () {
document.getElementById('Label24').value== document.getElementById('TextBox6').value;
}
</script>--%>
<script type="text/javascript">
$(function () {
$("[id*=TextBox6]").autocomplete({
source: function (request, response) {
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetNames3") %>',
data: "{ 'prefix': '" + request.term + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
response($.map(data.d, function (item) {
return {
label: item.split('-')[0],
val: item.split('-')[1]
}
}))
},
error: function (response) {
alert(response.responseText);
}
});
},
select: function (e, i) {
$("[id$=hfName]").val(i.item.label);
$.ajax({
type: "POST",
url: '<%=ResolveUrl("~/ArticleInvestigation.aspx/GetCountry3") %>',
data: "{ 'name': '" + i.item.label + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
$("[id*=TextBox3]").val(response.d.split('-')[0]);
$("[id*=TextBox4]").val(response.d.split('-')[1]);
},
error: function (response) {
alert(response.responseText);
}
});
},
minLength: 0
});
});
</script>
<%-- <script type="text/javascript">
$(document).ready(function() {
$("#<%=TextBox6.ClientID%>").autocomplete('Search_VB7.ashx');
});
</script> --%>
Devis ouvert numero : <asp:Label ID="Label7" runat="server" Text=""></asp:Label> Client : <asp:Label ID="Label14" runat="server" Text=""></asp:Label> DEVIS EN COURS :
<asp:DropDownList ID="DropDownList5" runat="server" Height="16px" Width="324px" AutoPostBack="True">
</asp:DropDownList>
<%-- <asp:GridView ID="GridView13" runat="server" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" Height="432px" Width="537px">
<FooterStyle BackColor="White" ForeColor="#333333" />
<HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#333333" />
<SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F7F7F7" />
<SortedAscendingHeaderStyle BackColor="#487575" />
<SortedDescendingCellStyle BackColor="#E5E5E5" />
<SortedDescendingHeaderStyle BackColor="#275353" />
</asp:GridView>--%>
<asp:Panel ID="Panel10" runat="server" ScrollBars="Vertical" Width="493px" Height="346px">
<asp:GridView ID="GridView13" runat="server" AutoGenerateColumns="False" Height="356px" Width="456px" OnRowDataBound="OnRowDataBound" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical">
<AlternatingRowStyle BackColor="#CCCCCC" />
<Columns>
<asp:BoundField HeaderText="N_Devis" DataField="N_Devis" />
<asp:BoundField HeaderText="Num_Client" DataField="Num_Client" />
<asp:BoundField HeaderText="Article" DataField="Article" />
<asp:BoundField HeaderText="Description" DataField="Description" />
<asp:TemplateField HeaderText="Qte" ControlStyle-Width="30px">
<ItemTemplate>
<asp:TextBox ID="TextBox7" runat="server" Text='<%# Eval("Qte") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField ButtonType="Button" CommandName="Select" HeaderText="Supp" ShowHeader="True" Text="-" />
<%-- <asp:BoundField HeaderText="cbmarq" DataField="cbmarq" Visible="false"/>--%>
</Columns>
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView></asp:Panel>
<asp:Button ID="Button6" runat="server" Height="25px" Text="Fermer" Width="107px" />
<asp:Button ID="Button10" runat="server" Height="25px" Text="Valider" Width="107px" UseSubmitBehavior="False" OnClientClick="this.disabled='True';this.value='Patientez...';"/>
<asp:Button ID="Button11" runat="server" Height="25px" Text="Supprimer" Width="107px" UseSubmitBehavior="False" OnClientClick="this.disabled='True';this.value='Patientez...';"/>
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="mpe3" runat="server"
TargetControlId="Button13" PopupControlID="ModalPanel3"
OkControlID="Button13" BackgroundCssClass="modalBackground2" X="750" Y="290" />
<asp:Panel ID="ModalPanel3" runat="server" BackColor="White" BorderColor="#000099" BorderStyle="Groove" CssClass="auto-style162" BorderWidth="2px" Visible="False" DefaultButton="Button14" >
<asp:Label ID="Label16" runat="server" Visible="true"></asp:Label>
<asp:Label ID="Label18" runat="server" Visible="true"></asp:Label>
<asp:Label ID="Label22" runat="server" Text="Label" Visible="False"></asp:Label>
</tr">
<asp:Label ID="Label15" runat="server" Text="Entrer votre quantitée :"></asp:Label>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</tr">
<tr">
<asp:Button ID="Button14" runat="server" Text="Ajoutée" Width="75px" style="height: 26px" UseSubmitBehavior="False" OnClientClick="this.disabled='True';this.value='Patientez...';"/>
</tr">
<tr">
</tr">
<asp:Label ID="Label21" runat="server" Text="Description article :" Visible="False"></asp:Label>
<asp:TextBox ID="TextBox8" runat="server" Visible="False"></asp:TextBox>
<%--<asp:Button ID="Button12" runat="server" Height="21px" Text="ok" Width="16px" Visible="False" />--%>
<asp:Button ID="Button13" runat="server" Text="fermer" Width="75px" />
</asp:Panel>
</asp:Content>