-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFarmerApprovals.aspx
145 lines (135 loc) · 4.68 KB
/
FarmerApprovals.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<%@ Page Title="" Language="C#" MasterPageFile="~/Master_Layout_Farmer.Master" AutoEventWireup="true" CodeBehind="FarmerApprovals.aspx.cs" Inherits="Onliine_Agro_Products_System.FarmerApprovals" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.mydatagrid
{
width: 80%;
border: solid 2px black;
min-width: 80%;
}
.header
{
background-color: #646464;
font-family: 'Trebuchet MS';
color: White;
border: none 0px transparent;
height: 25px;
text-align: center;
font-size: 14px;
}
.rows
{
background-color: #fff;
font-family: 'Trebuchet MS';
font-size: 13px;
color: #000;
min-height: 25px;
text-align: left;
border: none 0px transparent;
}
.rows:hover
{
background-color: moccasin;
font-family: 'Trebuchet MS';
color: #fff;
text-align: left;
}
.selectedrow
{
background-color: #ff8000;
font-family: 'Trebuchet MS';
color: #fff;
font-weight: bold;
text-align: left;
}
.mydatagrid a /** FOR THE PAGING ICONS **/
{
background-color: Transparent;
padding: 5px 5px 5px 5px;
color: #bf2020;
text-decoration: none;
font-weight: bold;
}
.mydatagrid a:hover /** FOR THE PAGING ICONS HOVER STYLES**/
{
background-color: #000;
color: #fff;
}
.mydatagrid span /** FOR THE PAGING ICONS CURRENT PAGE INDICATOR **/
{
color: #000;
padding: 5px 5px 5px 5px;
}
.pager
{
background-color: #646464;
font-family: 'Trebuchet MS';
color: White;
height: 30px;
text-align: left;
}
.mydatagrid td
{
padding: 5px;
}
.mydatagrid th
{
padding: 5px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h3>My Approvals</h3>
<asp:Panel ID="pnlDashboard1" ScrollBars="Horizontal" runat="server">
<strong>
<asp:Label runat="server" ID="lblMsg" ForeColor="Green"></asp:Label>
</strong><br />
<strong style="color:orangered">Check the <a href="FarmerDashboard.aspx" target="_blank">product status</a> before approve</strong>
<asp:GridView ID="gridProduct" runat="server" AutoGenerateColumns="false" ShowFooter="false" PageSize="6" AllowPaging="true" CssClass="mydatagrid" HeaderStyle-CssClass="header" RowStyle-CssClass="rows" Width="517px" EmptyDataText="No Records Found" OnPageIndexChanging="gridProduct_PageIndexChanging" >
<Columns>
<asp:TemplateField HeaderText="S.No" ItemStyle-Width="6">
<ItemTemplate>
<asp:Label ID="lblRowNumber" Text='<%# Container.DataItemIndex + 1 %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="S.No" ItemStyle-Width="6" Visible="false">
<ItemTemplate>
<asp:Label ID="lblTranID" Text='<%#Eval("FDT_Id")%>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Crop">
<ItemTemplate>
<asp:Label ID="lblID" runat="server" Text='<%#Eval("Crop_name")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Qty">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%#Eval("Purchased_Qty")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Dealer">
<ItemTemplate>
<asp:Label ID="Label2" runat="server"
Text='<%#Eval("Dealer")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Contact">
<ItemTemplate>
<asp:Label ID="Label3" runat="server"
Text='<%#Eval("Contact_No")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="50px" HeaderText="Status">
<ItemTemplate>
<asp:ImageButton ImageUrl="~/ticck.png" ToolTip="Approve" Width="15px" Height="15px" runat="server" OnClick="grdApproval_Approve"/>
<asp:ImageButton ImageUrl="~/cross-t1.jpg" ToolTip="Reject" runat="server" Width="15px" Height="15px" OnClick="grdApproval_Reject" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
<asp:Label ID="lblEmptyTxt" runat="server" Text="No Data Found"></asp:Label>
</EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
</asp:Content>