日期:2014-05-16 浏览次数:20773 次
qa.data.GEN_QA_PART = new Ext.data.JsonStore({
model: "GEN_QA_PART",
loadingText: false,
autoDestory: true,
autoLoad: false,
proxy: {
type: 'ajax',
// jsonData: Ext.util.Format.format('{userId: "{0}"}', 'aadd'),
headers: { "Accept": 'application/json', "Content-Type": 'application/json' },
url: 'GQSService.asmx/GetPartList',
reader: {
type: 'json',
root: 'd',
idProperty: 'PART_ID'
}
},
listeners: {
scope: this,
load: function () {
}
}
});
[ScriptMethod(ResponseFormat = ResponseFormat.Json), WebMethod(EnableSession = true)]
public List<GEN_QA_PART> GetPartList()
{
string errMsg = string.Empty;
List<GEN_QA_PART> lst = GEN_QA_PARTBLL.GePartList(string.Empty, ref errMsg);
if (!string.IsNullOrEmpty(errMsg))
{
}
return lst;
}
Ext.Ajax.request({
method: 'POST',
headers: { "Accept": 'application/json', "Content-Type": 'application/json' },
url: 'GQSService.asmx/G