Ejemplo n.º 1
0
        private void MeterialGi_Load(object sender, EventArgs e)
        {
            SecuGlobal.setDate(dateEditFrom, dateEditTo);


            if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C660A"))
            {
                cbPlant.Text = "SSDP";
            }
            else
            {
                cbPlant.Text = "SESC";
            }

            plantInsert = cbPlant.Text;

            string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code);

            if (!bufVend.Equals(""))
            {
                cbVendor.Text = bufVend;
            }
            else
            {
                cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername;  //苏州法人
            }

            if (!bGetInfo(bufVend.Substring(0, 4)))
            {
                SecuGlobal.showNG(panelStatus, lblStatus, "材料信息/line 信息获取失败");
                return;
            }

            SecuGlobal.showOK(panelStatus, lblStatus, "Ready");
        }
        /// <summary>
        /// 加载基本信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReqListVendor_Load(object sender, EventArgs e)
        {
            SecuGlobal.showOK(panelStatus, lblStatus, "正在加载数据,请稍等...");
            SecuGlobal.setDate(dateEditFrom, dateEditTo);


            fctCode = PaCSGlobal.LoginUserInfo.Fct_code;
            if (fctCode.Equals("C6H0A"))
            {
                plantCode = "SESC";
            }
            else
            {
                plantCode = "SSDP";
            }
            cbPlant.Text = plantCode;



            string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code);

            if (!bufVend.Equals(""))
            {
                cbVendor.Text = bufVend;
            }
            else
            {
                cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername;  //苏州法人
            }


            vendorInfo = cbVendor.Text;
            if (!string.IsNullOrEmpty(vendorInfo))
            {
                if (!vendorInfo.Equals("ALL"))
                {
                    string[] split = vendorInfo.Split(new Char[] { ':' });
                    vendorCode4 = split[0].Trim();
                }
                else
                {
                    vendorCode4 = "%";
                }
            }
            SecuGlobal.showOK(panelStatus, lblStatus, "Ready");
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 加载基本信息-日期、材料编号等
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MeterialRequest_Load(object sender, EventArgs e)
        {
            dtPlanDate.Text = PaCSGlobal.GetServerDateTime(3);
            getMeterialCode(); //FCT_CODE 别MASTER 信息

            user   = PaCSGlobal.LoginUserInfo.FullName;
            userIp = PaCSGlobal.GetClientIp();

            string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code);

            if (!bufVend.Equals(""))
            {
                cbVendor.Text = bufVend;
            }
            else
            {
                cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername; //SESC 法人信息;
            }

            getVendorCode4();
            SecuGlobal.showOK(panelStatus, lblStatus, "Ready");
        }
        /// <summary>
        /// LOAD 事件-材料、LINE等
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SsdpInput_Load(object sender, EventArgs e)
        {
            PaCSGlobal.InitComPort("SecuLabel", "SsdpInput", ports);

            if (ports[0].IsOpen)
            {
                ports[0].DataReceived += new SerialDataReceivedEventHandler(serialPortSecuSsdpInput_DataReceived);//重新绑定
            }
            if (PaCSGlobal.LoginUserInfo.Fct_code.Equals("C660A"))
            {
                cbPlant.Text = "SSDP";
            }
            else
            {
                cbPlant.Text = "SESC";
            }


            string bufVend = SecuGlobal.getPopVendorInfo(PaCSGlobal.LoginUserInfo.Venderid, PaCSGlobal.LoginUserInfo.Fct_code);

            if (!bufVend.Equals(""))
            {
                cbVendor.Text = bufVend;
            }
            else
            {
                cbVendor.Text = PaCSGlobal.LoginUserInfo.Venderid + ":" + PaCSGlobal.LoginUserInfo.Vendername;  //苏州法人
            }


            rdInput.SelectedIndex = 1;                  //默认是按卷投入
            getVendorCode4();
            SecuGlobal.getMeterialCode(cbMaterialCode); // 获取材料编号信息tb_security_master
            SecuGlobal.getLineInfo(cbLine, vendorCode);
            rdType_SelectedIndexChanged(sender, e);
            rdInput_SelectedIndexChanged(sender, e);
            SecuGlobal.showOK(panelStatus, lblStatus, "Ready ! 当前类型:" + secuType + "投入类型:" + inputType);
        }