Beispiel #1
0
        private void InitForm()
        {
            //取车牌号列表
            weighingLogic.GetTruckNoItem(ref CBTruckNo);
            //取设备信息
            weighingLogic.GetEquipmentItem(ref CBSB);
            //启运地  止运地
            weighingLogic.GetSite(ref CBSite1);
            weighingLogic.GetSite(ref CBSite2);
            //时间
            dateTimePicker1.Text = DateTime.Now.ToString();
            //工程项目
            weighingLogic.GetProjectName(ref CBProjectName);
            //仓库信息
            weighingLogic.GetWarehouseInfo(ref CBWarehouseInfo);

            OtherWeighingLogic logic = new OtherWeighingLogic();

            logic.SetPersonnelInfo(ref CBPersonnelInfo);

            //取得合同
            RadioChanged();
            // 未换卡前的初始化串口;
            //-------------------------------------------------------------------------------------------
            //icdev = CardClass.dc_init(0, 9600);
            //-------------------------------------------------------------------------------------------

            // 换卡后的初始化串口;
            icdev = iCardHelper.Init_Port(0, 9600);
        }
Beispiel #2
0
        private void InitForm()
        {
            WeighingLogic   logic     = new WeighingLogic();
            MetageFindClass findClass = new MetageFindClass();

            logic.GetTruckNoItem(ref CBTruckNo);
            logic.GetContractItem(WeighingStyle.InStyle, ref CBContract);
            logic.GetSite(ref CBInSite);
            logic.GetSite(ref CBToSite);
            findClass.GetMateriaName(ref CBGoodsName);
        }
Beispiel #3
0
        private void InitForm()
        {
            //取车牌号列表
            weighingLogic.GetTruckNoItem(ref CBTruckNo);
            //取设备信息
            weighingLogic.GetEquipmentItem(ref CBSB);
            //取运输合同
            //weighingLogic.GetTransportContract(ref CBTransportContract);
            //启运地  止运地
            weighingLogic.GetSite(ref CBSite1);
            weighingLogic.GetSite(ref CBSite2);
            //时间
            dateTimePicker1.Text = DateTime.Now.ToString();
            //工程项目
            weighingLogic.GetProjectName(ref CBProjectName);
            //仓库信息
            weighingLogic.GetWarehouseInfo(ref CBWarehouseInfo);

            OtherWeighingLogic logic = new OtherWeighingLogic();

            logic.SetPersonnelInfo(ref CBPersonnelInfo);
            //取得合同
            RadioChanged();
        }