提交代码
This commit is contained in:
@@ -203,6 +203,27 @@ namespace BLL
|
||||
return respone;
|
||||
}
|
||||
|
||||
public static Model.ResponeData getWorkSectionAndDrawingName(string drawingId)
|
||||
{
|
||||
Model.ResponeData respone = new ResponeData();
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
var q = (from x in db.View_QuantityManagement_Base
|
||||
where x.DrawingId == drawingId && x.State == BLL.Const.Base_Complete
|
||||
orderby x.Part
|
||||
select x).FirstOrDefault();
|
||||
BaseInfoItem res = new BaseInfoItem();
|
||||
if (q != null)
|
||||
{
|
||||
res.BaseInfoId = q.WorkSection;
|
||||
res.BaseInfoName = q.DrawingName;
|
||||
}
|
||||
|
||||
respone.data = res;
|
||||
}
|
||||
return respone;
|
||||
}
|
||||
|
||||
public static Model.ResponeData getProjectContentList(string drawingId, string part)
|
||||
{
|
||||
Model.ResponeData respone = new ResponeData();
|
||||
|
||||
Reference in New Issue
Block a user