很好的技术
源代码在线查看: product.aspx
软件大小: |
568 K |
上传用户: |
yeshuqin |
|
|
关键词: |
|
下载地址: |
免注册下载 普通下载
|
|
CodeFile="Product.aspx.cs" Inherits="Product" %>
function UnitCodeSelected(source, eventArgs) {
/*var unitCodeText = $get("ctl00_ContentPlaceHolder1_FormView1_UnitCodeTextBox");*/
var CodeText = $get('ctl00_ContentPlaceHolder1_FormView1_UnitCodeTextHiddenField');
if (CodeText != null)
CodeText.value = eventArgs.get_value();
}
function CountryCodeSelected(source, eventArgs) {
/*var CodeText = $get('< FormView1.FindControl("CountryCodeHiddenField").ClientID ');*/
var CodeText = $get('ctl00_ContentPlaceHolder1_FormView1_CountryCodeHiddenField');
if (CodeText != null)
CodeText.value = eventArgs.get_value();
}
function CurrCodeSelected(source, eventArgs) {
/*var CodeText = $get('< FormView1.FindControl("CountryCodeHiddenField").ClientID ');*/
var CodeText = $get('ctl00_ContentPlaceHolder1_FormView1_CurrNameHiddenField');
if (CodeText != null)
CodeText.value = eventArgs.get_value();
}
function getCurrCode() {
var returnVal = window.showModalDialog("CodeList.aspx", null, "dialogHeight:450px;dialogWidth:500px; center:yes;help:no;resizable:no;status:no;")
var CodeText = $get('ctl00_ContentPlaceHolder1_FormView1_CurrCodeHiddenField');
var NameText = $get('ctl00_ContentPlaceHolder1_FormView1_CurrNameTextBox');
if (CodeText != null)
CodeText.value = returnVal.Code;
if (NameText != null)
NameText.value = returnVal.Name;
//document.getElementById("textboxBookName").value = returnVal.book_name;
return false;
}
DataSourceID="LinqDataSource1" ForeColor="#333333">
ProductCode:
ProductName:
UnitCode: SelectedValue='' DataSourceID="LinqDataSource2"
DataTextField="UNIT_NAME" DataValueField="UNIT_CODE">
ContextTypeName="Pub_paraDataContext" Select="new (UNIT_CODE, UNIT_NAME)"
TableName="UNITs">
CountryCode:
CurrCode:
Qty:
Price:
Text="Update" />
CommandName="Cancel" Text="Cancel" />
新增产品档案
ProductCode
ProductName
UnitCode
ServiceMethod="GetUnitCodeList" ServicePath="AutoCompletedService.asmx" MinimumPrefixLength="1"
CompletionInterval="500" EnableCaching="true" CompletionSetCount="20" CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
DelimiterCharacters=";, :" ShowOnlyCurrentWordInCompletionListItem="true" OnClientItemSelected="UnitCodeSelected">
CountryCode
ServiceMethod="GetCountryCodeList" ServicePath="AutoCompletedService.asmx" MinimumPrefixLength="1"
CompletionInterval="500" EnableCaching="true" CompletionSetCount="20" CompletionListCssClass="autocomplete_completionListElement"
CompletionListItemCssClass="autocomplete_listItem" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"
DelimiterCharacters=";, :" ShowOnlyCurrentWordInCompletionListItem="true" OnClientItemSelected="CountryCodeSelected">
CurrCode
id="Button1" type="button" value="find" onclick="getCurrCode()"/>
Qty
Price
Text="Insert" />
CommandName="Cancel" Text="Cancel" />
ProductCode:
ProductName:
UnitCode:
CountryCode:
CurrCode:
Qty:
Price:
Text="Edit" />
Text="Delete" />
Text="New" />
EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="Products"
Where="ProductCode == @ProductCode" OnInserted="LinqDataSource1_Inserted" OnUpdated="LinqDataSource1_Updated">
DefaultMode="Insert">
ProductCode:
Text='' />
ProductName:
Text='' />
UnitCode:
Text='' />
CountryCode:
Text='' />
CurrCode:
Text='' />
Qty:
Price:
CommandName="Update" Text="Update" />
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
ProductCode:
Text='' />
ProductName:
Text='' />
UnitCode:
Text='' />
CountryCode:
Text='' />
CurrCode:
Text='' />
Qty:
Price:
CommandName="Insert" Text="Insert" />
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
ProductCode:
Text='' />
ProductName:
Text='' />
UnitCode:
CountryCode:
Text='' />
CurrCode:
Qty:
Price:
CommandName="New" Text="New" />
DataObjectTypeName="ProductEntity" InsertMethod="Add" SelectMethod="GetList"
TypeName="ProductController">