<%@ Page Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" CodeFile="DefineCompany.aspx.cs" Inherits="DefineCompany" Title="Untitled Page" %>

<%@ Register src="US_MainAdminChecker.ascx" tagname="US_MainAdminChecker" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
       
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td class="style2" colspan="3">
                <asp:Label ID="Lbl_Title" runat="server" CssClass="LabelHeaader" 
                    Text="ثبت شرکت ها"></asp:Label>
                        </td>
            <td class="style2">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Lbl_ProjectDes" runat="server" CssClass="Label1" 
                    Text="عنوان شرکت : "></asp:Label>
                        </td>
            <td class="style2">
            <asp:TextBox ID="Txt_CompanyName" runat="server" 
                CssClass="TextNormalAlignLeftDLeft" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style3">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="Txt_CompanyName" 
                    ErrorMessage="وارد کردن عنوان شرکت الزامی است" ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_ProjectDes0" runat="server" CssClass="Label1" 
                    Text="نام و نام خانوادگی مدیر شرکت :"></asp:Label>
                        </td>
            <td>
            <asp:TextBox ID="Txt_ManagerName" runat="server" 
                CssClass="TextNormalAlignLeftDLeft" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="Txt_ManagerName" 
                    ErrorMessage="وارد کردن نام و نام خاوادگی مدیر شرکت الزامی است" 
                    ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Tell" runat="server" CssClass="Label1" 
                    Text="تلفن : "></asp:Label>
                        </td>
            <td>
            <asp:TextBox ID="Txt_Tell" runat="server" 
                CssClass="TextNormalAlignLeftDLeft" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="Txt_Tell" ErrorMessage="وارد کردن تلفن شرکت الزامی است" 
                    ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Fax" runat="server" CssClass="Label1" 
                    Text="فکس :"></asp:Label>
                        </td>
            <td>
            <asp:TextBox ID="Txt_Fax" runat="server" 
                CssClass="TextNormalAlignRightDRight" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="Txt_Fax" ErrorMessage="وارد کردن فکس شرکت الزامی است" 
                    ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_WebSite" runat="server" CssClass="Label1" 
                    Text="وب سایت شرکت :"></asp:Label>
                        </td>
            <td>
            <asp:TextBox ID="Txt_WebSite" runat="server" 
                CssClass="TextNormalAlignLeftDLeft" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" 
                    ControlToValidate="Txt_WebSite" ErrorMessage="وب سایت را بصورت صحیح وارد کنید" 
                    ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?" 
                    ValidationGroup="11">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="Txt_WebSite" 
                    ErrorMessage="وارد کردن وب سایت شرکت الزامی است" ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                <asp:Label ID="Lab" runat="server" 
                    
                    Text="Your WebSite: http://www.WebSiteName.Domain -&gt;  Sample-http://www.yahoo.com"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Email" runat="server" CssClass="Label1" 
                    Text="آدرس ایمیل شرکت :"></asp:Label>
                        </td>
            <td>
            <asp:TextBox ID="Txt_Email" runat="server" 
                CssClass="TextNormalAlignLeftDLeft" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" 
                    ControlToValidate="Txt_Email" ErrorMessage="ایمیل را صحیح وارد کنید" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ValidationGroup="11">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ControlToValidate="Txt_Email" ErrorMessage="وارد کردن ایمیل شرکت الزامی است" 
                    ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                <asp:Label ID="Label2" runat="server" 
                    Text="Your Email: YourID@WebSiteName.Domain -&gt;  Sample-Bahar@yahoo.com"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Lbl_Address" runat="server" CssClass="Label1" 
                    Text="آدرس شرکت :"></asp:Label>
                        </td>
            <td>
            <asp:TextBox ID="Txt_Address" runat="server" 
                CssClass="TextNormalAlignLeftDLeft" ValidationGroup="11"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="Txt_Address" ErrorMessage="وارد کردن آدرس شرکت الزامی است" 
                    ValidationGroup="11">*</asp:RequiredFieldValidator>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style5">
                </td>
            <td class="style5">
                            <asp:Button ID="Btn_sabteCompany" runat="server" CssClass="ButtonAdd" 
                                Text="درج در لیست" onclick="Btn_ViewUserOrders_Click" 
                                ValidationGroup="11" />
                        </td>
            <td class="style6">
                </td>
            <td class="style6">
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <uc1:US_MainAdminChecker ID="US_MainAdminChecker1" runat="server" />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                ValidationGroup="11" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="Grd_Comp" runat="server" AutoGenerateColumns="False" 
                    CssClass="mGrid" DataKeyNames="CompanyID" DataSourceID="LinqDt_Comp21">
                    <Columns>
                        <asp:CommandField ShowEditButton="True" />
                        <asp:BoundField DataField="CompanyID" HeaderText="CompanyID" 
                            InsertVisible="False" ReadOnly="True" SortExpression="CompanyID" />
                        <asp:BoundField DataField="CompanyName" HeaderText="CompanyName" 
                            SortExpression="CompanyName" />
                        <asp:BoundField DataField="CompanyManagerName" HeaderText="CompanyManagerName" 
                            SortExpression="CompanyManagerName" />
                        <asp:BoundField DataField="CompanyTell" HeaderText="CompanyTell" 
                            SortExpression="CompanyTell" />
                        <asp:BoundField DataField="CompanyFax" HeaderText="CompanyFax" 
                            SortExpression="CompanyFax" />
                        <asp:BoundField DataField="CompanyWebSite" HeaderText="CompanyWebSite" 
                            SortExpression="CompanyWebSite" />
                        <asp:BoundField DataField="CompanyEmailAddress" 
                            HeaderText="CompanyEmailAddress" SortExpression="CompanyEmailAddress" />
                        <asp:BoundField DataField="CompanyAddress" HeaderText="CompanyAddress" 
                            SortExpression="CompanyAddress" />
                        <asp:CommandField ShowDeleteButton="True" />
                    </Columns>
                </asp:GridView>
                <asp:LinqDataSource ID="LinqDt_Comp21" runat="server" 
                    ContextTypeName="LSC_WareHouseDataContext" EnableDelete="True" 
                    EnableInsert="True" EnableUpdate="True" OrderBy="CompanyID desc" 
                    TableName="tblCompanies">
                </asp:LinqDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

