public int SetData(System.Collections.ArrayList alPrintData, Neusoft.HISFC.BizProcess.Interface.Pharmacy.BillType billType) { this.neuSpread1_Sheet1.Rows.Count = alPrintData.Count; int iIndex = 0; foreach (Neusoft.HISFC.Models.Pharmacy.Check info in alPrintData) { if (iIndex == 0) { this.lbInfo.Text = string.Format("科室:{0} 日期:{1} 盘点单号:{2} 盘点人:", info.StockDept.Name, info.Operation.Oper.OperTime.ToString(), info.CheckNO); } this.neuSpread1_Sheet1.Cells[iIndex, 0].Text = info.PlaceNO; this.neuSpread1_Sheet1.Cells[iIndex, 1].Text = info.Item.Name + "[" + info.Item.Specs + "]"; this.neuSpread1_Sheet1.Cells[iIndex, 2].Text = info.BatchNO; this.neuSpread1_Sheet1.Cells[iIndex, 3].Text = ""; //info.PackQty.ToString(); this.neuSpread1_Sheet1.Cells[iIndex, 4].Text = info.Item.PackUnit; this.neuSpread1_Sheet1.Cells[iIndex, 5].Text = ""; //info.MinQty.ToString(); this.neuSpread1_Sheet1.Cells[iIndex, 6].Text = info.Item.MinUnit; this.neuSpread1_Sheet1.Cells[iIndex, 7].Text = info.Memo; iIndex++; } return(1); }
public int SetData(ArrayList alPrintData, Neusoft.HISFC.BizProcess.Interface.Pharmacy.BillType billType) { this.maxrowno = 12; this.panel1.Width = this.Width; this.PrintGroupData(alPrintData); return(1); }
public int SetData(ArrayList alPrintData, Neusoft.HISFC.BizProcess.Interface.Pharmacy.BillType billType) { return(1); }
public int SetData(ArrayList alPrintData, Neusoft.HISFC.BizProcess.Interface.Pharmacy.BillType billType) { this.maxrowno = 12; this.panel1.Width = this.Width; ArrayList a0 = new ArrayList(); ArrayList a1 = new ArrayList(); ArrayList a2 = new ArrayList(); ArrayList a3 = new ArrayList(); ArrayList a4 = new ArrayList(); ArrayList a5 = new ArrayList(); #region 照自定义编码进行分组 foreach (Neusoft.HISFC.Models.Pharmacy.InPlan inPlan in alPrintData) { try { string code = inPlan.Item.NameCollection.UserCode; string firstLetter = code.Substring(0, 1); if (firstLetter == "1" || firstLetter == "2" || firstLetter == "3") { a0.Add(inPlan); } else if (firstLetter == "0") { a1.Add(inPlan); } else if (firstLetter == "4") { a2.Add(inPlan); } else if (firstLetter == "5") { a3.Add(inPlan); } else if (firstLetter == "8") { a4.Add(inPlan); } else if (firstLetter == "9") { a5.Add(inPlan); } } catch (Exception e) { MessageBox.Show("出错!" + e.Message); } } #endregion #region 调用打印函数 完成打印操作 int inow = 0, icount = 0; string operCode = ","; try { //if (a0.Count != 0) //{ // this.label3.Text = "西药库"; // this.PrintGroupData(a0); //} //if (a1.Count != 0) //{ // this.label3.Text = "液体库"; // this.PrintGroupData(a1); //} //if (a2.Count != 0) //{ // this.label3.Text = "新特药库"; // this.PrintGroupData(a2); //} //if (a3.Count != 0) //{ // this.label3.Text = "自制药库"; // this.PrintGroupData(a3); //} //if (a4.Count != 0) //{ // this.label3.Text = "草药库"; // this.PrintGroupData(a4); //} //if (a5.Count != 0) //{ // this.label3.Text = "中成药药库"; // this.PrintGroupData(a5); //} this.PrintGroupData(alPrintData); return(1); } catch (Exception e) { MessageBox.Show("出错!" + e.Message); return(-1); } #endregion }
public int SetData(System.Collections.ArrayList alPrintData, Neusoft.HISFC.BizProcess.Interface.Pharmacy.BillType billType) { throw new Exception("The method or operation is not implemented."); }