protected override void OnAppearing() { decimal TotalQnty, TotalAmount = 0; base.OnAppearing(); DataTable dt = ADO_Manager.GetADO_ReqDetails(CompanyName, DocNo); var doDetailList = ADODM.ADO_DetailList(dt); if (dt.Rows.Count > 0) { TotalQnty = decimal.Parse(dt.Compute("Sum(Quantity)", "").ToString()); TotalAmount = decimal.Parse(dt.Compute("Sum(TotalAmount)", "").ToString()); lblTotalAmount.Text = "Total qty: " + TotalQnty.ToString("0.00") + " Amount: " + TotalAmount.ToString("0.00"); lblADOReqNo.Text = dt.Rows[0]["AdvNO"].ToString(); } foreach (var item in doDetailList) { items.Add(item); } ADOReq_DetailList.ItemsSource = items; }
protected override async void OnAppearing() { decimal TotalQnty, TotalAmount = 0; base.OnAppearing(); DataTable dt = PIDataManager.GetPIInfoWithAdvByPINo(CompanyName, DocNo); var piDetailList = PDM.piDetailListPOP(dt); if (dt.Rows.Count > 0) { TotalQnty = decimal.Parse(dt.Compute("Sum(PIQuantity)", "").ToString()); TotalAmount = decimal.Parse(dt.Compute("Sum(PIValue)", "").ToString()); lblTotalAmount.Text = "PIQuantity: " + TotalQnty.ToString("0.00") + " PI Value: " + TotalAmount.ToString("0.00"); lblPINo.Text = dt.Rows[0]["PINO"].ToString(); } foreach (var item in piDetailList) { items.Add(item); } piListview.ItemsSource = items; }
protected override void OnAppearing() { decimal TotalQnty, TotalAmount = 0; base.OnAppearing(); DataTable dt = DO_Manager.GetDoToPrint(CompanyName, LCNo, DocNo); var doDetailList = DODM.DODetailList(dt); if (dt.Rows.Count > 0) { TotalQnty = decimal.Parse(dt.Compute("Sum(DoQnty)", "").ToString()); TotalAmount = decimal.Parse(dt.Compute("Sum(DOAmount)", "").ToString()); lblTotalAmount.Text = "Total qty: " + TotalQnty.ToString("0.00") + " Total Amount: " + TotalAmount.ToString("0.00"); lblDONo.Text = dt.Rows[0]["DONo"].ToString(); } foreach (var item in doDetailList) { items.Add(item); } DOListview.ItemsSource = items; }
protected override async void OnAppearing() { decimal TotalQnty, TotalAmount = 0; base.OnAppearing(); DataTable dt = ADM.getDetailByInqCompany(CompanyName, DocNo, getUserName); var inqDetaillist = ADM.inqDetailList(dt); if (dt.Rows.Count > 0) { TotalQnty = decimal.Parse(dt.Compute("Sum(Quantity)", "").ToString()); TotalAmount = decimal.Parse(dt.Compute("Sum(Amount)", "").ToString()); lblTotalAmount.Text = "Quantity: " + TotalQnty.ToString("0.00") + " Amount: " + TotalAmount.ToString("0.00"); lblInqName.Text = dt.Rows[0]["DocumentNo"].ToString(); } foreach (var item in inqDetaillist) { items.Add(item); } listView.ItemsSource = items; }
protected override void OnAppearing() { decimal TotalQnty, TotalAmount = 0; base.OnAppearing(); DataTable dt = DelSch_Manager.GetDatewiseDeliveryScheduleBySchNo(SchDate, DocNo); var Alt_doDetailList = DSM.DelSch_DetailList(dt); if (dt.Rows.Count > 0) { TotalQnty = decimal.Parse(dt.Compute("Sum(ScheduleQnty)", "").ToString()); TotalAmount = decimal.Parse(dt.Compute("Sum(Amount)", "").ToString()); lblTotalAmount.Text = "Total qty: " + TotalQnty.ToString("0.00") + " Amount: " + TotalAmount.ToString("0.00"); lblDocumentNo.Text = dt.Rows[0]["DocumentNo"].ToString(); } foreach (var item in Alt_doDetailList) { items.Add(item); } DelSch_DetailList.ItemsSource = items; }
protected override void OnAppearing() { decimal TotalQnty, TotalAmount = 0; base.OnAppearing(); DataTable dt = AltDO_Manager.GetUnApprovedAdvAlternateReq(CompanyName, DocNo, LCNo); var Alt_doDetailList = Alt_DODM.Alt_DODetailList(dt); if (dt.Rows.Count > 0) { TotalQnty = decimal.Parse(dt.Compute("Sum(Quantity)", "").ToString()); TotalAmount = decimal.Parse(dt.Compute("Sum(Amount)", "").ToString()); lblTotalAmount.Text = "Total qty: " + TotalQnty.ToString("0.00") + " Amount: " + TotalAmount.ToString("0.00"); lblAlt_DOReqNo.Text = DocNo; } foreach (var item in Alt_doDetailList) { items.Add(item); } Alt_DOReqlist.ItemsSource = items; }