Skip to content

Commit

Permalink
Merge pull request #9 from DigitalPlatform/master
Browse files Browse the repository at this point in the history
同步源
  • Loading branch information
renyh authored Nov 5, 2018
2 parents b5f412c + 4902fec commit 08b1d30
Show file tree
Hide file tree
Showing 103 changed files with 6,586 additions and 1,263 deletions.
4 changes: 2 additions & 2 deletions DigitalPlatform.AmazonInterface/AmazonSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ int LoadResults(XmlDocument response_dom,

static string Join(ICollection list)
{
StringBuilder text = new StringBuilder(4096);
StringBuilder text = new StringBuilder();
foreach (string s in list)
{
if (text.Length > 0)
Expand Down Expand Up @@ -996,7 +996,7 @@ static string GetFieldValues(XmlNode root,
string strXPath,
string strSep)
{
StringBuilder text = new StringBuilder(4096);
StringBuilder text = new StringBuilder();
XmlNodeList nodes = root.SelectNodes(strXPath, nsmgr);
foreach (XmlNode node in nodes)
{
Expand Down
2 changes: 1 addition & 1 deletion DigitalPlatform.CirculationClient/dp2ResTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public static string SaveSortTables(Hashtable sort_table)
if (sort_table == null)
return "";

StringBuilder strResult = new StringBuilder(4096);
StringBuilder strResult = new StringBuilder();
foreach (string key in sort_table.Keys)
{
List<string> values = (List<string>)sort_table[key];
Expand Down
2 changes: 1 addition & 1 deletion DigitalPlatform.CommonControl/GuiState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ public static void SetUiState(List<object> controls,
// 获得表示控件状态的字符串
public static string GetUiState(List<object> controls)
{
StringBuilder text = new StringBuilder(4096);
StringBuilder text = new StringBuilder();

foreach (object obj in controls)
{
Expand Down
3 changes: 1 addition & 2 deletions DigitalPlatform.CommonControl/OrderDesignControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,6 @@ string IsDistributeControlled(string strDistribute)
continue;
}


// 解析
dp2StringUtil.ParseCalendarName(location.Name,
out string strLibraryCode,
Expand All @@ -1767,7 +1766,7 @@ string IsDistributeControlled(string strDistribute)
codes.Add(strLibraryCode);
}

StringUtil.RemoveDup(ref codes);
StringUtil.RemoveDupNoSort(ref codes);

// 检查馆代码是否在管辖范围内
if (this.VerifyLibraryCode != null)
Expand Down
2 changes: 1 addition & 1 deletion DigitalPlatform.CommonControl/dp2QueryControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static string BuildFromList(string strDbNameList,
return strDbNameList + ":" + strFromList;

string[] dbname_list = strDbNameList.Split(new char[] { ',' });
StringBuilder result = new StringBuilder(4096);
StringBuilder result = new StringBuilder();
foreach (string dbname in dbname_list)
{
string strDbName = dbname.Trim();
Expand Down
1 change: 0 additions & 1 deletion DigitalPlatform.Drawing/QrRecognitionControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ private void DecodeBarcode()
{
if (_currentBitmapForDecoding != null)
{

var result = reader.Decode(_currentBitmapForDecoding);
if (result != null)
{
Expand Down
2 changes: 1 addition & 1 deletion DigitalPlatform.IO/FileUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public static int ReadTextFileContent(string strFilePath,
else
{
long lLoadedLength = 0;
StringBuilder temp = new StringBuilder(4096);
StringBuilder temp = new StringBuilder();
for (; ; )
{
string strLine = sr.ReadLine();
Expand Down
2 changes: 2 additions & 0 deletions DigitalPlatform.LibraryClient/LibraryChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9783,6 +9783,7 @@ public long GetAuthorNumber(
}

public long GetPinyin(
string strType,
string strText,
out string strPinyinXml,
out string strError)
Expand All @@ -9794,6 +9795,7 @@ public long GetPinyin(
try
{
IAsyncResult soapresult = this.ws.BeginGetPinyin(
strType,
strText,
null,
null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3681,10 +3681,10 @@ public interface dp2libraryREST {
DigitalPlatform.LibraryClient.localhost.LibraryServerResult EndGetAuthorNumber(ref DigitalPlatform.LibraryClient.localhost.Question[] questions, out string strNumber, out string strDebugInfo, System.IAsyncResult result);

[System.ServiceModel.OperationContractAttribute(Action="http://dp2003.com/dp2library/rest/dp2libraryREST/GetPinyin", ReplyAction="http://dp2003.com/dp2library/rest/dp2libraryREST/GetPinyinResponse")]
DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strText);
DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strType, string strText);

[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://dp2003.com/dp2library/rest/dp2libraryREST/GetPinyin", ReplyAction="http://dp2003.com/dp2library/rest/dp2libraryREST/GetPinyinResponse")]
System.IAsyncResult BeginGetPinyin(string strText, System.AsyncCallback callback, object asyncState);
System.IAsyncResult BeginGetPinyin(string strType, string strText, System.AsyncCallback callback, object asyncState);

DigitalPlatform.LibraryClient.localhost.LibraryServerResult EndGetPinyin(out string strPinyinXml, System.IAsyncResult result);

Expand Down Expand Up @@ -9113,13 +9113,13 @@ public void GetAuthorNumberAsync(string strAuthor, bool bSelectPinyin, bool bSel
questions}, this.onEndGetAuthorNumberDelegate, this.onGetAuthorNumberCompletedDelegate, userState);
}

public DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strText) {
return base.Channel.GetPinyin(out strPinyinXml, strText);
public DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strType, string strText) {
return base.Channel.GetPinyin(out strPinyinXml, strType, strText);
}

[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginGetPinyin(string strText, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginGetPinyin(strText, callback, asyncState);
public System.IAsyncResult BeginGetPinyin(string strType, string strText, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginGetPinyin(strType, strText, callback, asyncState);
}

[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Expand All @@ -9128,8 +9128,9 @@ public DigitalPlatform.LibraryClient.localhost.LibraryServerResult EndGetPinyin(
}

private System.IAsyncResult OnBeginGetPinyin(object[] inValues, System.AsyncCallback callback, object asyncState) {
string strText = ((string)(inValues[0]));
return this.BeginGetPinyin(strText, callback, asyncState);
string strType = ((string)(inValues[0]));
string strText = ((string)(inValues[1]));
return this.BeginGetPinyin(strType, strText, callback, asyncState);
}

private object[] OnEndGetPinyin(System.IAsyncResult result) {
Expand All @@ -9147,11 +9148,11 @@ private void OnGetPinyinCompleted(object state) {
}
}

public void GetPinyinAsync(string strText) {
this.GetPinyinAsync(strText, null);
public void GetPinyinAsync(string strType, string strText) {
this.GetPinyinAsync(strType, strText, null);
}

public void GetPinyinAsync(string strText, object userState) {
public void GetPinyinAsync(string strType, string strText, object userState) {
if ((this.onBeginGetPinyinDelegate == null)) {
this.onBeginGetPinyinDelegate = new BeginOperationDelegate(this.OnBeginGetPinyin);
}
Expand All @@ -9162,6 +9163,7 @@ public void GetPinyinAsync(string strText, object userState) {
this.onGetPinyinCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetPinyinCompleted);
}
base.InvokeAsync(this.onBeginGetPinyinDelegate, new object[] {
strType,
strText}, this.onEndGetPinyinDelegate, this.onGetPinyinCompletedDelegate, userState);
}

Expand Down Expand Up @@ -14308,10 +14310,10 @@ public interface dp2library {
DigitalPlatform.LibraryClient.localhost.LibraryServerResult EndGetAuthorNumber(ref DigitalPlatform.LibraryClient.localhost.Question[] questions, out string strNumber, out string strDebugInfo, System.IAsyncResult result);

[System.ServiceModel.OperationContractAttribute(Action="http://dp2003.com/dp2library/dp2library/GetPinyin", ReplyAction="http://dp2003.com/dp2library/dp2library/GetPinyinResponse")]
DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strText);
DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strType, string strText);

[System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://dp2003.com/dp2library/dp2library/GetPinyin", ReplyAction="http://dp2003.com/dp2library/dp2library/GetPinyinResponse")]
System.IAsyncResult BeginGetPinyin(string strText, System.AsyncCallback callback, object asyncState);
System.IAsyncResult BeginGetPinyin(string strType, string strText, System.AsyncCallback callback, object asyncState);

DigitalPlatform.LibraryClient.localhost.LibraryServerResult EndGetPinyin(out string strPinyinXml, System.IAsyncResult result);

Expand Down Expand Up @@ -19734,13 +19736,13 @@ public void GetAuthorNumberAsync(string strAuthor, bool bSelectPinyin, bool bSel
questions}, this.onEndGetAuthorNumberDelegate, this.onGetAuthorNumberCompletedDelegate, userState);
}

public DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strText) {
return base.Channel.GetPinyin(out strPinyinXml, strText);
public DigitalPlatform.LibraryClient.localhost.LibraryServerResult GetPinyin(out string strPinyinXml, string strType, string strText) {
return base.Channel.GetPinyin(out strPinyinXml, strType, strText);
}

[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
public System.IAsyncResult BeginGetPinyin(string strText, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginGetPinyin(strText, callback, asyncState);
public System.IAsyncResult BeginGetPinyin(string strType, string strText, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginGetPinyin(strType, strText, callback, asyncState);
}

[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Expand All @@ -19749,8 +19751,9 @@ public DigitalPlatform.LibraryClient.localhost.LibraryServerResult EndGetPinyin(
}

private System.IAsyncResult OnBeginGetPinyin(object[] inValues, System.AsyncCallback callback, object asyncState) {
string strText = ((string)(inValues[0]));
return this.BeginGetPinyin(strText, callback, asyncState);
string strType = ((string)(inValues[0]));
string strText = ((string)(inValues[1]));
return this.BeginGetPinyin(strType, strText, callback, asyncState);
}

private object[] OnEndGetPinyin(System.IAsyncResult result) {
Expand All @@ -19768,11 +19771,11 @@ private void OnGetPinyinCompleted(object state) {
}
}

public void GetPinyinAsync(string strText) {
this.GetPinyinAsync(strText, null);
public void GetPinyinAsync(string strType, string strText) {
this.GetPinyinAsync(strType, strText, null);
}

public void GetPinyinAsync(string strText, object userState) {
public void GetPinyinAsync(string strType, string strText, object userState) {
if ((this.onBeginGetPinyinDelegate == null)) {
this.onBeginGetPinyinDelegate = new BeginOperationDelegate(this.OnBeginGetPinyin);
}
Expand All @@ -19783,6 +19786,7 @@ public void GetPinyinAsync(string strText, object userState) {
this.onGetPinyinCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetPinyinCompleted);
}
base.InvokeAsync(this.onBeginGetPinyinDelegate, new object[] {
strType,
strText}, this.onEndGetPinyinDelegate, this.onGetPinyinCompletedDelegate, userState);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
<xs:element name="GetPinyin">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="strType" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="strText" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@
<xs:element name="GetPinyin">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="strType" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="strText" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
Expand Down
Loading

0 comments on commit 08b1d30

Please sign in to comment.