当前位置: 首页>>代码示例>>C#>>正文


C# ReceiveDoc.CountReceivedNotIssuedItems方法代码示例

本文整理汇总了C#中BLL.ReceiveDoc.CountReceivedNotIssuedItems方法的典型用法代码示例。如果您正苦于以下问题:C# ReceiveDoc.CountReceivedNotIssuedItems方法的具体用法?C# ReceiveDoc.CountReceivedNotIssuedItems怎么用?C# ReceiveDoc.CountReceivedNotIssuedItems使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BLL.ReceiveDoc的用法示例。


在下文中一共展示了ReceiveDoc.CountReceivedNotIssuedItems方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PopulateStockStatus

        private void PopulateStockStatus()
        {
            // progressBar1.Visible = true;

            if (curMont != 0 && curYear != 0)
            {
                IssueDoc iss = new IssueDoc();
                ReceiveDoc rec = new ReceiveDoc();
                Balance blnc = new Balance();

                DataTable dtbl = blnc.GetSOH(storeId, curMont, curYear);

                DateTime lastRec = rec.GetLastReceivedDate(storeId);
                DateTime lastIss = iss.GetLastIssuedDate(storeId);
               //time here
                TimeSpan tt = new TimeSpan();
                string noDays = "";
                tt = new TimeSpan(dtCurrent.Ticks - lastRec.Ticks);
                noDays = (tt.TotalDays < 30000) ? tt.TotalDays.ToString() + " Days" : "Never";

                lblLastReceived.Text = (tt.TotalDays < 30000) ? lastRec.ToString("MM dd,yyyy") : "Never";
                lblRecDays.Text = noDays;
                //progressBar1.PerformStep();
                tt = new TimeSpan(dtCurrent.Ticks - lastIss.Ticks);
                noDays = (tt.TotalDays < 30000) ? tt.TotalDays.ToString() + " Days" : "Never";
                lblLastIssued.Text = (tt.TotalDays < 30000) ? lastIss.ToString("MM dd,yyyy") : "Never";
                lblIssuedDays.Text = noDays;

                DataTable dtStockout = (from m in dtbl.AsEnumerable()
                                        where m["Status"].ToString() == "Normal"
                                        && ((ckExclude.Checked == true)? Convert.ToInt32(m["EverReceived"]) == 1 : true)
                                        select m).CopyToDataTable();
                //StatusGroup.Text = "Stocked In Items";
                PopulateList(dtStockout, listStatused);

                DataTable dtFreeStockOut = (from m in dtbl.AsEnumerable()
                                            where m["Status"].ToString() == "Stock Out"
                                            && ((ckExclude.Checked == true) ? Convert.ToInt32(m["EverReceived"]) == 1 : true)
                                            select m).CopyToDataTable();
                //groupStatusTrend.Text = "Stocked out Free Items ";
                PopulateList(dtFreeStockOut, listStatused);

                DataTable dtRec = rec.GetTopReceivedItems(storeId);
               // groupRecSummary.Text = "Top 10 Most Received Items";
                PopulateList(dtRec, listReceiveSum);
                lblNeverRecived.Text = rec.CountNeverReceivedItems(storeId).ToString();
                if (rec.CountNeverReceivedItems(storeId) == 0)
                {
                    linkLabel10.Visible = false;
                }
                else
                {
                    linkLabel10.Visible = true;
                }
                lblNeverIssued.Text = rec.CountReceivedNotIssuedItems(storeId).ToString();
                if (rec.CountReceivedNotIssuedItems(storeId) == 0)
                {
                    linkLabel21.Visible = false;
                }
                else
                {
                    linkLabel21.Visible = true;
                }
               // progressBar1.PerformStep();
                DataTable dtIss = iss.GetTopIssuedItems(storeId);
               // groupIssued.Text = "Top 10 Most Issued Items";
                PopulateList(dtIss, listIssued);

                //Balance bal = new Balance();
                GeneralInfo info = new GeneralInfo();
                info.LoadAll();
                DataTable dtList = new DataTable();
                DataTable dtCons = new DataTable();
                string[] co = { "Ham", "Neh", "Mes", "Tek", "Hed", "Tah", "Tir", "Yek", "Meg", "Miz", "Gen", "Sen" };

                //foreach(string s in co)
                //{
                dtList.Columns.Add("Month");
                dtList.Columns.Add("Value");
                dtList.Columns[1].DataType = typeof(Int64);

                dtCons.Columns.Add("Month");
                dtCons.Columns.Add("Value");
                dtCons.Columns[1].DataType = typeof(Int64);

                int[] mon = { 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
                double[] cos = new double[12];
                DataTable dtBal = new DataTable();
                Items recd = new Items();
               //time here
                int year = dtCurrent.Year;

                chartReceiveCost.Series.Clear();

                Series ser = new Series("Received Cost In Birr", ViewType.Line);
                ser.DataSource = dtList;
                ser.ArgumentScaleType = ScaleType.Qualitative;
                ser.ArgumentDataMember = "Month";
                ser.ValueScaleType = ScaleType.Numerical;

//.........这里部分代码省略.........
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-facility,代码行数:101,代码来源:GeneralReport.cs


注:本文中的BLL.ReceiveDoc.CountReceivedNotIssuedItems方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。