public DataTable GetReceive(string voucherID, string tablename) { IReceiveOperation receiveDAL = Recieve_Facotry.CreateRecive(tablename); ReceiveOperation taskOperation = new ReceiveOperation(receiveDAL); return(taskOperation.GetReceive(voucherID)); }
/// <summary> /// 一般车辆 物料无PTA ,判断是否有等级规则 /// 多次过磅车辆 煤 EG 等 /// 用户自定义的创建 原辅料的检查单,基本信息在 RecieveGeneral /// table /// </summary> /// <param name="Receive"></param> /// <param name="Doc"></param> /// <param name="msg"></param> /// <returns></returns> public bool InsertReceive(DOCReceive receive, ReceiveGeneral general, out string msg) { string TableName = "MIGO"; if (!string.IsNullOrEmpty(receive.TableName)) { Console.WriteLine("receive" + receive.TableName); string voucherid = CreateVoucherIDByReceive(); receive.VoucherID = voucherid; Console.WriteLine(receive.VoucherID + receive.TableName); TableName = receive.TableName; } IReceiveOperation receiveDAL = Recieve_Facotry.CreateRecive(TableName); ReceiveOperation taskOperation = new ReceiveOperation(receiveDAL); return(taskOperation.InsertRecieve(receive, general, out msg)); }