⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stockprocess.h

📁 这是一个工厂的生产线的仓库管理.有计划,实绩,库存等
💻 H
📖 第 1 页 / 共 5 页
字号:
#pragma once
#include "infClass.h"
#include "DBBase.h"
#include "ProductResultInput.h"
#include "Deliver.h"

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace FAP
{
	/// <summary> 
	/// StockProcess 偺奣梫

	///
	/// 寈崘 : 偙偺僋儔僗偺柤慜傪曄峏偡傞応崌丄偙偺僋儔僗偑埶懚偡傞偡傋偰偺 .resx 僼傽僀儖偵娭楢晅偗傜傟偨 
	///          儅僱乕僕 儕僜乕僗 僐儞僷僀儔 僣乕儖偵懳偟偰 'Resource File Name' 僾儘僷僥傿傪 
	///          曄峏偡傞昁梫偑偁傝傑偡丅偙偺曄峏傪峴傢側偄偲丄

	///          僨僓僀僫偲丄偙偺僼僅乕儉偵娭楢晅偗傜傟偨儘乕僇儔僀僘嵪傒儕僜乕僗偲偑丄
	///          惓偟偔憡屳偵棙梡偱偒側偔側傝傑偡丅

	/// </summary>
	public __gc class StockProcess : public System::Windows::Forms::Form
	{
	public: 
		StockProcess(void)
		{
			InitializeComponent();
		}
        
		StockProcess(infClass *infTmp,
					String *strProTmp,
					int strReaTmp,   // 0: 报废
									 // 1: 退还

									 // 2: 良品返库
					bool blnReaDivBox,
					int intmove,		// 1::从画面进来
										// 2::从保留品一览进来
										// 3::从入库进来
					String	*	strqty,
					String	*	strlot
					)
		{
			InitializeComponent();
			DBbStockProcess = new DBBase();
			DBbStocka=new  DBBase();
			infStockProcess = infTmp;

			strProCode = strProTmp;
			intReasonDiv = strReaTmp;

			cboReasonDiv->Enabled = blnReaDivBox;


			infStockProcess = infTmp;
			iLanguage	= infStockProcess->intLang;
			sFactory	= infStockProcess->strFactoryCode;
			sLine		= infStockProcess->strLine;
			sProcess	= infStockProcess->strProcess;
			iGroup		= infStockProcess->intGroup;
			cShift		= infStockProcess->strShift;

			sintmove	= intmove;
			sstrtextQty = strqty;
			sstrtxtLot	= strlot;

		}
		

		DBBase *DBbStockProcess;
	private: System::Windows::Forms::GroupBox *  groupBox2;

	public:
			 DBBase *DBbStocka;
		infClass *infStockProcess;

		String * strProCode;
		int intReasonDiv;

		bool Deal0(int,String * Strnamec);
		bool Deal1(int);
		bool Deal2(int);

		//原材料
		bool DealM0(int,String * Strnamec);

		String * reason_name(String * strreasonname,DBBase * dbTmp,int iLanguage);

		DataTable * SetReasonj(int inReason,DBBase * dbTmp,int iLanguage);

		int intGetStockType(String* strFac,String * strProcess,String * strPro,String * strLot);

		//半成品保留品
		void strGetSplitLot1(int strstockqty,DBBase * DBTmp,String * strproductcode);
		//原材料保留品
		void strGetSplitLot2(int strstockqty,DBBase * DBTmp,String * strproductcode);

		//false原材料,true半成品
		bool StrProduct();

		bool vetroDeal0(int intNum,String * Strnamec);

		Single  strGetPrice(String *);

		void strGetORIGIN(DBBase * dBTMP,String *strfeng);

		bool CreateViewFAP(String * strFilename);

		static DataTable * dtblGetYProcessPro(infClass *infTmp,DBBase * dBTMP);

		String *saG_stock_qty __gc[];
		String *saG_stock_ymd __gc[];

		int			insiderank;//decide which  person of rank enter into this form,value 0 is for worker,1,2 is sequently for mananger and administrator 
		int 		iLanguage;
		String*		sFactory;
		String*		sLine;
		String*		sProcess;
		int 		iGroup;
		String*		cShift;
		int			sintmove;	// 1::从画面进来
									// 2::从保留品一览进来
									// 3::从入库进来

		String	*	sstrtextQty;
		String  *	sstrtxtLot;

		String * pstrCsnPath;

		String * vstrYMDHIS;

		String * vstrDateTime;


		//半成品库存最大数
		bool strchecklotnumber1(int strstockqty,DBBase * DBTmp,String * strproductcode,String * strprocess);

		//原材料库存最大数
		bool strchecklotnumber2(int strstockqty,DBBase * DBTmp,String * strproductcode,String * strprocess);

		//输出Excel
		void OutputExcel();

	private: System::Windows::Forms::Label *  label9;
	private: System::Windows::Forms::ComboBox *  cboReasonDiv;
	private: System::Windows::Forms::TextBox *  txtProCode;
	private: System::Windows::Forms::TextBox *  txtNum;
	private: System::Windows::Forms::TextBox *  txtProName;
	private: System::Windows::Forms::ComboBox *  cboReason;
	private: System::Windows::Forms::RadioButton *  optYes1;
	private: System::Windows::Forms::ComboBox *  cboRespon;
	private: System::Windows::Forms::RadioButton *  optNo1;
	private: System::Windows::Forms::TextBox *  txtReturnName;
	private: System::Windows::Forms::RadioButton *  optYes2;
	private: System::Windows::Forms::ComboBox *  cboReturn;
	private: System::Windows::Forms::RadioButton *  optNo2;
	private: System::Windows::Forms::CheckBox *  cboUnblock;
	private: System::Windows::Forms::GroupBox *  gpb0;
	private: System::Windows::Forms::GroupBox *  gpb1;
	private: System::Windows::Forms::GroupBox *  gpb2;
	private: System::Windows::Forms::TextBox *  txtLot;
    private: System::Windows::Forms::ComboBox *  cmbProCode;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -