真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

關(guān)于H3BPM數(shù)據(jù)庫如何實現(xiàn)排序取數(shù)據(jù)的問題-創(chuàng)新互聯(lián)

問題:

我們提供的服務(wù)有:成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、新區(qū)ssl等。為成百上千家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的新區(qū)網(wǎng)站制作公司

在打印模板中獲取子表內(nèi)容,可從數(shù)據(jù)庫中取數(shù)據(jù),而當(dāng)前項目數(shù)據(jù)庫里面數(shù)據(jù)按年度錄入,但是只需要顯示近3年的數(shù)據(jù),插件如何實現(xiàn)排序取數(shù)據(jù)?

解決方法:

1、先直接寫一個SQL語句,把近3年排序后的數(shù)據(jù)讀取出來

2、在調(diào)用子表接口加載數(shù)據(jù)

3、示例:

var monthly = DateTime.Now.Month;

            var selectsql = string.Format(@"SELECT

                                              t1.Yearly,

                                              t1.Monthly,

                                              t1.BudgetUnitName,

                                              t1.BudgetUnitCode,

                                              t1.BudgetItemName,

                                              t1.BudgetItemCode,

                                              t1.Budget

                                              FROM XL_YS_BudgetPay t1

                                              WHERE t1.Yearly = {0}

                                              --AND Monthly > {1}

                                              AND t1.BudgetUnitCode = '{2}'

                                              AND BudgetItemCode = '{3}'

                                              ORDER BY Monthly", yearly, monthly, budgetunitcode, budgetitemcode);

var dt = OThinker.H3.WorkSheet.AppUtility.Engine.Query.QueryTable(selectsql);

var list = new List();

var monthlist = new List { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December" };

if (dt.Rows.Count > 0)

{

//DeptCostBudgetInfo 為子表名稱

              BizObjectSchema childSchema = this.ActionContext.Schema.GetProperty("DeptCostBudgetInfo").ChildSchema;

               var bizObject = new BizObject(this.ActionContext.Engine, childSchema, this.ActionContext.User.UserID);

               bizObject["DataType"] = "原始";

               bizObject["BudgetItemName"] = dt.Rows[0]["BudgetItemName"].ToString();

               bizObject["BudgetItemCode"] = dt.Rows[0]["BudgetItemCode"].ToString();

               var bizObject2 = new BizObject(this.ActionContext.Engine, childSchema, this.ActionContext.User.UserID);

               bizObject2["DataType"] = "修改";

               bizObject2["BudgetItemName"] = dt.Rows[0]["BudgetItemName"].ToString();

               bizObject2["BudgetItemCode"] = dt.Rows[0]["BudgetItemCode"].ToString();

               for (int i = 0; i < monthlist.Count; i++)

               {

                 bizObject[monthlist] = dt.Rows["Budget"].ToString();

                 bizObject2[monthlist] = dt.Rows["Budget"].ToString();

                }

                list.Add(bizObject);

                list.Add(bizObject2);

               }

               if (bos != null)

               {

                   if (bos.Length > 1)

                   {

                       list.AddRange(bos);

                   }

               }

               this.ActionContext.InstanceData["DeptCostBudgetInfo"].Value = list.ToArray();

               ActionContext.InstanceData.Submit();

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。


名稱欄目:關(guān)于H3BPM數(shù)據(jù)庫如何實現(xiàn)排序取數(shù)據(jù)的問題-創(chuàng)新互聯(lián)
標(biāo)題路徑:http://weahome.cn/article/dicjdd.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部