chore: 首次簽入 Thinkyu ASP.NET 專案

- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
2026-09-10 09:42:37 +08:00
commit 577060bc78
2496 changed files with 501389 additions and 0 deletions
+413
View File
@@ -0,0 +1,413 @@
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="fmBprm.ascx.cs" Inherits="forms_customer_fmBprm" %>
<%@ Register Assembly="WNET" Namespace="Wellan.Web.UI"
TagPrefix="cc1" %>
<cc1:WLabel ID="WLabel1" runat="server" CssClass="pageTitle"
TextMessageId="FMBPRM.NAME"></cc1:WLabel>
<asp:CustomValidator ID="cvMessage" runat="server"
Display="None"></asp:CustomValidator>
<asp:MultiView ID="MultiView1" runat="server"
ActiveViewIndex="0">
<asp:View ID="View2" runat="server">
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>
<cc1:WLabel ID="WLabel8" runat="server" TextMessageId="">輸入年度:</cc1:WLabel>
</td>
<td>
<asp:TextBox ID="txtYear" runat="server" Columns="4"
MaxLength="4"></asp:TextBox>
</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
<cc1:WLabel ID="WLabel7" runat="server" TextMessageId="">選擇客戶:</cc1:WLabel>
</td>
<td>
<asp:DropDownList ID="ddlBCUS" runat="server">
</asp:DropDownList>
</td>
<td>
<cc1:WButton ID="WButton1" runat="server"
onclick="WButton1_Click" Text="確定" />
</td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="5">
<tr>
<th>
<cc1:WLabel ID="WLabel4" runat="server" Text="專案"></cc1:WLabel>
</th>
<th>
<cc1:WLabel ID="WLabel5" runat="server" Text="專案處理人員"></cc1:WLabel>
</th>
<td>
</td>
<th>
<cc1:WLabel ID="WLabel6" runat="server" Text="非處理人員"></cc1:WLabel>
</th>
</tr>
<tr>
<td>
<asp:ListBox ID="lbProject" runat="server" Rows="25"
Width="400px" AutoPostBack="True"
onselectedindexchanged="lbProject_SelectedIndexChanged"></asp:ListBox>
</td>
<td>
<asp:ListBox ID="lbInWork" runat="server" Rows="25"
Width="160px" SelectionMode="Multiple"></asp:ListBox>
</td>
<td>
<asp:ImageButton ID="btnMoveIn" runat="server"
ImageUrl="~/picture/arrow_left.png"
onclick="btnMoveIn_Click" />
<br />
<br />
<br />
<br />
<br />
<asp:ImageButton ID="btnMoveOut" runat="server"
ImageUrl="~/picture/arrow_right.png"
onclick="btnMoveOut_Click" />
</td>
<td>
<asp:ListBox ID="lbOutWork" runat="server" Rows="25"
Width="160px" SelectionMode="Multiple"></asp:ListBox>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View3" runat="server">
<asp:SqlDataSource ID="dsBPRMGrid" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa"
OnSelected="dsBPRM_Selected"
ProviderName="System.Data.SqlClient"
SelectCommand="SELECT * FROM BPRM"></asp:SqlDataSource>
<asp:SqlDataSource ID="dsBPRMForm" runat="server"
ConflictDetection="CompareAllValues"
ConnectionString="Data Source=(local);Initial Catalog=THINKYU_WEB;Persist Security Info=True;User ID=sa" DeleteCommand="DELETE FROM BPRM
WHERE BPPNM = @OLD_BPPNM
AND BPENO = @OLD_BPENO
AND APPNO = @OLD_APPNO"
InsertCommand="INSERT INTO BPRM
(BPPNM, BPENO, APPNO, TRDAT, TRMOD, TRUSR)
VALUES
(@BPPNM, @BPENO, 1, GETDATE(), 'INSERT', @TRUSR)"
OldValuesParameterFormatString="OLD_{0}"
OnSelected="dsBPRM_Selected"
OnSelecting="dsBPRMForm_Selecting"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM BPRM
WHERE BPPNM=@BPPNM
AND BPENO=@BPENO
ORDER BY BPENO" UpdateCommand="UPDATE BPRM SET
BPPNM = @BPPNM,
BPENO = @BPENO,
APPNO = APPNO + 1,
TRDAT = GETDATE(),
TRMOD = 'UPDATE',
TRUSR = @TRUSR
WHERE BPPNM = @OLD_BPPNM
AND BPENO = @OLD_BPENO
AND APPNO = @OLD_APPNO">
<SelectParameters>
<asp:ControlParameter ControlID="gvBPRM" Name="BPPNM"
PropertyName="SelectedDataKey[&quot;BPPNM&quot;]" />
<asp:ControlParameter ControlID="gvBPRM" Name="BPENO"
PropertyName="SelectedDataKey[&quot;BPENO&quot;]" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="OLD_BPPNM" />
<asp:Parameter Name="OLD_BPENO" />
<asp:Parameter Name="OLD_APPNO" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="BPPNM" />
<asp:Parameter Name="BPENO" />
<asp:SessionParameter Name="TRUSR" SessionField="W_CUSR" />
<asp:Parameter Name="OLD_BPPNM" />
<asp:Parameter Name="OLD_BPENO" />
<asp:Parameter Name="OLD_APPNO" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="BPPNM" />
<asp:Parameter Name="BPENO" />
<asp:SessionParameter Name="TRUSR" SessionField="W_CUSR" />
</InsertParameters>
</asp:SqlDataSource>
<asp:FormView ID="fvBPRM" runat="server"
DataSourceID="dsBPRMForm" OnDataBound="fvBPRM_DataBound"
OnItemCommand="fvBPRM_ItemCommand"
OnItemDeleted="fvBPRM_ItemDeleted"
OnItemInserted="fvBPRM_ItemInserted"
OnItemInserting="fvBPRM_ItemInserting"
OnItemUpdated="fvBPRM_ItemUpdated"
OnItemUpdating="fvBPRM_ItemUpdating"
OnModeChanged="fvBPRM_ModeChanged"
OnModeChanging="fvBPRM_ModeChanging">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0"
width="640">
<tr>
<td align="left">
<cc1:WButton ID="btnInsert" runat="server" AccessKey="I"
CommandName="New" CssClass="button" Text="I.新增"
TextMessageId="I.+INSERT" />
<cc1:WButton ID="btnEdit" runat="server" AccessKey="M"
CommandName="Edit" CssClass="button" Text="M.更正"
TextMessageId="M.+UPDATE" />
<cc1:WButton ID="btnDelete" runat="server" AccessKey="T"
CommandName="Delete" CssClass="button"
OnClientClick="return confirm(msgConfirmDelete);"
Text="T.刪除" TextMessageId="T.+DELETE" />
</td>
<td align="right">
<cc1:WButton ID="btnBPRJ" runat="server" AccessKey="R"
CommandName="BPRJ" CssClass="button"
Enabled='<%# ForwardSource != "" %>' Text="R.返回專案資料"
TextMessageId="" Width="105px" />
</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="2"
style="table-layout: fixed" width="1">
<tr>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
</tr>
<tr>
<td align="right" colspan="1">
<cc1:WLabel ID="lbBPRM_BPPNMLabel" runat="server"
CssClass="controlLabel" TextMessageId="BPRM.BPPNM+:">專案編號:</cc1:WLabel>
</td>
<td class="dataDisplayCell" colspan="1">
<asp:Label ID="lbBPRM_BPPNM" runat="server"
CssClass="textInput" Text='<%# Bind("BPPNM", "{0:c}") %>'></asp:Label>
</td>
<td class="dataDisplayCell" colspan="4">
<asp:Label ID="lbBPRM_BPPNMX" runat="server"
CssClass="textInput"
Text='<%# GetLookup("BPRJ", Eval("BPPNM", "{0:c}"), "BPPME") %>'></asp:Label>
</td>
</tr>
<tr>
<td align="right" colspan="1">
<cc1:WLabel ID="lbBPRM_BPENOLabel" runat="server"
CssClass="controlLabel" TextMessageId="BPRM.BPENO+:">人員編號:</cc1:WLabel>
</td>
<td class="dataDisplayCell" colspan="1">
<asp:Label ID="lbBPRM_BPENO" runat="server"
CssClass="textInput" Text='<%# Bind("BPENO", "{0:c}") %>'></asp:Label>
</td>
<td class="dataDisplayCell" colspan="2">
<asp:Label ID="lbBPRM_BPENOX" runat="server"
Text='<%# GetLookup("BPSN", Eval("BPENO", "{0:c}"), "BPNME") %>'></asp:Label>
</td>
</tr>
</table>
<asp:HiddenField ID="lbBPRM_APPNO" runat="server"
Value='<%# Bind("APPNO") %>' />
</ItemTemplate>
<InsertItemTemplate>
<cc1:WButton ID="btnSave" runat="server" AccessKey="S"
CommandName="Insert" CssClass="button"
OnClientClick="return confirm(msgConfirmSave);" Text="S.存檔"
TextMessageId="S.+SAVE" />
<cc1:WButton ID="btnCancel" runat="server" AccessKey="C"
CausesValidation="false" CommandName="Cancel"
CssClass="button"
OnClientClick="return confirm(msgConfirmCancel);"
Text="C.取消" TextMessageId="C.+CANCEL" />
<asp:RequiredFieldValidator ID="rfvBPENO" runat="server"
ControlToValidate="txtBPRM_BPENO" Display="None"
ErrorMessage="請輸入人員編號"></asp:RequiredFieldValidator>
<asp:CustomValidator ID="cvBPENO" runat="server"
ControlToValidate="txtBPRM_BPENO" Display="None"
ErrorMessage="人員編號不存在"
OnServerValidate="cvBPENO_ServerValidate"></asp:CustomValidator>
<table border="0" cellpadding="2" cellspacing="2"
style="table-layout: fixed" width="1">
<tr>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
</tr>
<tr>
<td align="right" colspan="1">
<cc1:WLabel ID="lbBPRM_BPPNMLabel" runat="server"
CssClass="controlLabel" TextMessageId="BPRM.BPPNM+:">專案編號:</cc1:WLabel>
</td>
<td class="dataDisplayCell" colspan="1">
<asp:Label ID="lbBPRM_BPPNM" runat="server"
CssClass="textInput" Text="<%# _BPPNM %>"></asp:Label>
</td>
<td class="dataDisplayCell" colspan="4">
<asp:Label ID="lbBPRM_BPPNMX" runat="server"
CssClass="textInput"
Text='<%# GetLookup("BPRJ", _BPPNM, "BPPME") %>'></asp:Label>
</td>
</tr>
<tr>
<td align="right" colspan="1">
<cc1:WLabel ID="WLabel2" runat="server"
CssClass="controlLabel" TextMessageId="BPRM.BPENO+:">人員編號:</cc1:WLabel>
</td>
<td class="dataEditCell" colspan="1">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100">
<asp:TextBox ID="txtBPRM_BPENO" runat="server"
CssClass="textInput" MaxLength="10"
Text='<%# Bind("BPENO", "{0:c}") %>'></asp:TextBox>
</td>
<td style="width: 17px">
<asp:ImageButton ID="btnBPRM_BPENO_WQRY" runat="server"
ImageUrl="~/picture/pickup.gif" />
</td>
</tr>
</table>
</td>
<td class="dataDisplayCell" colspan="2">
<asp:Label ID="lbBPRM_BPENOX" runat="server"
CssClass="textInput"
Text='<%# GetLookup("BPSN", Eval("BPENO", "{0:c}"), "BPNME") %>'></asp:Label>
</td>
</tr>
</table>
</InsertItemTemplate>
<EditItemTemplate>
<cc1:WButton ID="btnSave" runat="server" AccessKey="S"
CommandName="Update" CssClass="button"
OnClientClick="return confirm(msgConfirmSave);" Text="S.存檔"
TextMessageId="S.+SAVE" />
<cc1:WButton ID="btnCancel" runat="server" AccessKey="C"
CausesValidation="false" CommandName="Cancel"
CssClass="button"
OnClientClick="return confirm(msgConfirmCancel);"
Text="C.取消" TextMessageId="C.+CANCEL" />
<table border="0" cellpadding="2" cellspacing="2"
style="table-layout: fixed" width="1">
<tr>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
<td colspan="1" style="height: 0px; width: 90px">
</td>
<td colspan="1" style="height: 0px; width: 120px">
</td>
</tr>
<tr>
<td align="right" colspan="1">
<cc1:WLabel ID="lbBPRM_BPPNMLabel" runat="server"
CssClass="controlLabel" TextMessageId="BPRM.BPPNM+:">專案編號:</cc1:WLabel>
</td>
<td class="dataDisplayCell" colspan="1">
<asp:Label ID="lbBPRM_BPPNM" runat="server"
CssClass="textInput" Text='<%# Bind("BPPNM", "{0:c}") %>'></asp:Label>
</td>
<td class="dataDisplayCell" colspan="4">
<asp:Label ID="lbBPRM_BPPNMX" runat="server"
CssClass="textInput"
Text='<%# GetLookup("BPRJ", Eval("BPPNM", "{0:c}"), "BPPME") %>'></asp:Label>
</td>
</tr>
<tr>
<td align="right" colspan="1">
<cc1:WLabel ID="WLabel3" runat="server"
CssClass="controlLabel" TextMessageId="BPRM.BPENO+:">人員編號:</cc1:WLabel>
</td>
<td class="dataEditCell" colspan="1">
<table border="0" cellpadding="0" cellspacing="0"
class="textInput">
<tr>
<td width="100">
<asp:TextBox ID="txtBPRM_BPENO" runat="server"
CssClass="textInput" MaxLength="10"
Text='<%# Bind("BPENO", "{0:c}") %>'></asp:TextBox>
</td>
<td style="width: 17px">
<asp:ImageButton ID="btnBPRM_BPENO_WQRY" runat="server"
ImageUrl="~/picture/pickup.gif" />
</td>
</tr>
</table>
</td>
<td class="dataDisplayCell" colspan="2">
<asp:Label ID="lbBPRM_BPENOX" runat="server"
CssClass="textInput"
Text='<%# GetLookup("BPSN", Eval("BPENO", "{0:c}"), "BPNME") %>'></asp:Label>
</td>
</tr>
</table>
<asp:HiddenField ID="hfBPRM_APPNO" runat="server"
Value='<%# Bind("APPNO") %>' />
</EditItemTemplate>
</asp:FormView>
<asp:GridView ID="gvBPRM" runat="server" AllowPaging="True"
AutoGenerateColumns="False" DataKeyNames="BPPNM,BPENO"
DataSourceID="dsBPRMGrid" OnDataBound="gvBPRM_DataBound"
OnPageIndexChanged="gvBPRM_PageIndexChanged"
OnRowDataBound="gvBPRM_RowDataBound"
OnSelectedIndexChanged="gvBPRM_SelectedIndexChanged">
<Columns>
<asp:CommandField SelectText="" ShowSelectButton="True" />
<asp:BoundField AccessibleHeaderText="BPRM.BPPNM"
DataField="BPPNM" HeaderText="專案編號" ReadOnly="True"
SortExpression="BPPNM" />
<asp:BoundField AccessibleHeaderText="BPRM.BPENO"
DataField="BPENO" HeaderText="人員編號" ReadOnly="True"
SortExpression="BPENO" />
<asp:TemplateField AccessibleHeaderText="BPSN.BPNME"
HeaderText="人員姓名" SortExpression="BPENO">
<ItemTemplate>
<asp:Label ID="lbBPRM_BPENOX" runat="server"
Text='<%# GetLookup("BPSN", Eval("BPENO", "{0:c}"), "BPNME") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Width="250px" />
<ItemStyle Width="250px" />
</asp:TemplateField>
</Columns>
<PagerTemplate>
<cc1:WGridViewPager ID="WGridViewPager1" runat="server" />
</PagerTemplate>
</asp:GridView>
</asp:View>
</asp:MultiView>