摘要:
private DataSet ListToDataSet(IList<Asset> list) { DataSet mResult = new DataSet(); if (list != null) { var newList = from l in list select new { ... 阅读全文
posted @ 2013-01-25 15:52
xust
阅读(152)
评论(0)
推荐(0)
摘要:
// lambda 表达式 分组,并且分页 /// <summary> /// 获取所有组织机构数据(按价格名称分组) /// </summary> /// <returns></returns> public string PriceStandardSelectAllGroupBy() { IList<PriceStandard> mPriceStandards = new List<PriceStandard>(); IList<PriceStandar... 阅读全文
posted @ 2013-01-25 15:50
xust
阅读(740)
评论(0)
推荐(0)
摘要:
1. <?xml version="1.0" encoding="UTF-8" ?><sqlMap namespace="User" xmlns="http://ibatis.apache.org/mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <alias> <typeAlias alias="StgImpBalanceGoods" type=&quo 阅读全文
posted @ 2013-01-25 15:48
xust
阅读(243)
评论(0)
推荐(0)
摘要:
IAllotService AllotSrv = new AllotService(); var mId = Request.QueryString["id"]; if (String.IsNullOrEmpty(mId)) return; var mAllot = AllotSrv.GetById(mId); List<Allot> mAllots = new List<Allot>(); mAllots.Add(mAllot); ... 阅读全文
posted @ 2013-01-25 15:45
xust
阅读(538)
评论(0)
推荐(0)
摘要:
/// <summary> /// 获取所有数据 /// </summary> /// <returns></returns> public string GetComboDataPayPrePay() { IList<Hashtable> mHashtables = new List<Hashtable>(); int mTotal = 0; int mStart = 0; int mLimt = 0; ... 阅读全文
posted @ 2013-01-25 15:42
xust
阅读(936)
评论(0)
推荐(0)
摘要:
1. 可空类型 Decimal? 允许值为null,默认值为null 如:public Decimal? orderQuantity { get; set; } 默认值为null public Decimal orderQuantity { get; set; } 默认值为0.0解决问题:之前遇到的 Specified cast is not valid. 错误是因为 没有使用 可空类型 引起的,同时也解决了 做数值类型查询时,数值的默认值的问题。 阅读全文
posted @ 2013-01-25 15:41
xust
阅读(146)
评论(0)
推荐(0)

浙公网安备 33010602011771号