private void btn출력_Click(object sender, EventArgs e)
        {
            btn출력.Enabled = false;

            strCondition = "";

            if (inputRmGrid.Rows.Count == 0)
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn출력.Enabled = true;
                return;
            }

            bindData();

            if (strCondition == "No")
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn출력.Enabled = true;
                return;
            }

            if (strCondition != "ERROR")
            {
                strCondition = "원자재입고식별표";

                frmPrt = readyPrt;
                frmPrt.Show();
                frmPrt.BringToFront();
                frmPrt.prt_식별표(adoPrt, strCondition);
            }

            btn출력.Enabled = true;
        }
Esempio n. 2
0
        public void 발주현황표출력()
        {
            try
            {
                string sValue  = "" + txt_order_date.Text.Trim();
                string sValue2 = "" + txt_order_cd.Text.Trim();

                if (sValue == "")
                {
                    MessageBox.Show("출력할 자료가 없습니다.");
                    return;
                }
                getOrderMain(sValue, sValue2);

                frmPrt = readyPrt;
                frmPrt.Show();
                frmPrt.BringToFront();
                frmPrt.prt_발주현황표(adoPrt, adoPrt2, dt_회사정보, sValue, sValue2, "발주서");
                frmPrt.email = strCustEmail;
            }
            catch (Exception ex) {
                wnLog.writeLog(wnLog.LOG_ERROR, ex.Message + " - " + ex.ToString()); Popup.pop오류리포트 msg = new Popup.pop오류리포트(ex.Message + " - " + ex.ToString());
                msg.ShowDialog();
            }
        }
Esempio n. 3
0
        private void btn출력_Click(object sender, EventArgs e)
        {
            btn출력.Enabled = false;

            strCondition = "";

            if (rawOutGrid.Rows.Count == 0)
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn출력.Enabled = true;
                return;
            }

            strDay1      = start_date.Text;
            strDay2      = end_date.Text;
            strCondition = "원자재투입현황";

            frmPrt = readyPrt;
            frmPrt.Show();
            frmPrt.BringToFront();
            //frmPrt.prt_원자재재고현황(adoPrt, strDay1, strDay2, strCust, strCondition);
            frmPrt.prt_원자재투입현황(adoPrt, strDay1, strDay2, strCondition);

            btn출력.Enabled = true;
        }
        private void btn_bar_out_Click(object sender, EventArgs e)
        {
            btn_bar_out.Enabled = false;

            strCondition = "";

            //bindData_Print();
            //----------------------------------------
            bindData();

            if (strCondition == "No")
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn_bar_out.Enabled = true;
                return;
            }

            if (strCondition != "ERROR")
            {
                strCondition = "제품입고식별표2";

                frmPrt = readyPrt;
                frmPrt.Show();
                frmPrt.BringToFront();
                frmPrt.prt_식별표(adoPrt, strCondition);
            }

            btn_bar_out.Enabled = true;
        }
Esempio n. 5
0
        private void btn출력_Click(object sender, EventArgs e)
        {
            btn출력.Enabled = false;

            strCondition = "";
            if (ToipGrid.Rows.Count == 0 && MadeGrid.Rows.Count == 0)
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn출력.Enabled = true;
                return;
            }
            strCondition = "일일작업결과";
            frmPrt       = readyPrt;
            frmPrt.Show();
            frmPrt.BringToFront();

            ArrayList delLotArray = new ArrayList();

            for (int i = 0; i < adoPrt2.Rows.Count; i++)
            {
                if ((bool)MadeGrid.Rows[i].Cells["선택"].Value == false)
                {
                    delLotArray.Add(MadeGrid.Rows[i].Cells["LOT_NO"].Value.ToString());
                }
            }

            DataTable madeTemp = adoPrt2.Copy();
            DataTable toipTemp = adoPrt1.Copy();


            for (int i = 0; i < delLotArray.Count; i++)
            {
                for (int k = 0; k < madeTemp.Rows.Count; k++)
                {
                    if (madeTemp.Rows[k]["LOT_NO"].ToString().Equals(delLotArray[i]))
                    {
                        madeTemp.Rows.RemoveAt(k);
                        k = -1;
                    }
                }
                for (int k = 0; k < toipTemp.Rows.Count; k++)
                {
                    if (toipTemp.Rows[k]["LOT_NO"].ToString().Equals(delLotArray[i]))
                    {
                        toipTemp.Rows.RemoveAt(k);
                        k = -1;
                    }
                }
            }


            frmPrt.prt_작업일보관리(toipTemp, madeTemp, strCondition);
            btn출력.Enabled = true;
        }
Esempio n. 6
0
        public void call_Print()
        {
            if (GridRecord.Rows.Count == 0)
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                return;
            }

            frmPrt.Show();
            frmPrt.BringToFront();
            frmPrt.prt_원장조회(adoPrt, strDay1, strDay2, strCust, strCondition);
        }
Esempio n. 7
0
        private void btn출력_Click(object sender, EventArgs e)
        {
            btn출력.Enabled = false;

            strCondition = "";
            if (ToipGrid.Rows.Count == 0 && MadeGrid.Rows.Count == 0)
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn출력.Enabled = true;
                return;
            }
            strCondition = "일일작업결과";
            frmPrt       = readyPrt;
            frmPrt.Show();
            frmPrt.BringToFront();
            frmPrt.prt_일일작업결과(adoPrt1, adoPrt2, strCondition);
            btn출력.Enabled = true;
        }
Esempio n. 8
0
        public void HACCP점검표출력()
        {
            try
            {
                string sValue  = "" + txt_chk_date.Text;
                string sValue2 = "" + txt_input_cd.Text;

                if (sValue2 == "")
                {
                    MessageBox.Show("출력할 자료가 없습니다.");
                    return;
                }
                getOrderMain(sValue, sValue2);

                frmPrt = readyPrt;
                frmPrt.Show();
                frmPrt.BringToFront();
                frmPrt.prt_HACCP점검표(adoPrt, adoPrt2, sValue, sValue2, "HACCP점검표");
            }
            catch (Exception ex) {
                wnLog.writeLog(wnLog.LOG_ERROR, ex.Message + " - " + ex.ToString()); Popup.pop오류리포트 msg = new Popup.pop오류리포트(ex.Message + " - " + ex.ToString());
                msg.ShowDialog();
            }
        }
Esempio n. 9
0
        public void 발주현황표출력()
        {
            try
            {
                string sValue  = "" + txt_order_date.Text.Trim();
                string sValue2 = "" + txt_order_cd.Text.Trim();

                if (sValue == "")
                {
                    MessageBox.Show("출력할 자료가 없습니다.");
                    return;
                }
                getOrderMain(sValue, sValue2);

                frmPrt = readyPrt;
                frmPrt.Show();
                frmPrt.BringToFront();
                frmPrt.prt_발주현황표(adoPrt, adoPrt2, sValue, sValue2, "발주현황표");
            }
            catch (Exception ex)
            {
                wnLog.writeLog(wnLog.LOG_ERROR, ex.Message + " - " + ex.ToString());
            }
        }
Esempio n. 10
0
        private void btn출력_Click(object sender, EventArgs e)
        {
            btn출력.Enabled = false;

            strCondition = "";

            if (inputRmGrid.Rows.Count == 0)
            {
                MessageBox.Show("출력할 자료가 없습니다.");
                btn출력.Enabled = true;
                return;
            }


            strCondition = "매출처원장";

            wnDm wDm = new wnDm();


            DataTable myinfo   = wDm.fn_Saup_List(Common.p_saupNo);
            DataTable custInfo = wDm.fn_Cust_List("WHERE A.CUST_CD = '" + txt_cust_cd.Text + "'  ");



            DataTable dtTemp = MakeFrmPrt();

            dtTemp.Rows.Clear();

            for (int i = 0; i < inputRmGrid.Rows.Count; i++)
            {
                dtTemp.Rows.Add();

                dtTemp.Rows[i]["표시페이지"]    = i / 13 + 1;
                dtTemp.Rows[i]["표시순번"]     = (i + 1).ToString();
                dtTemp.Rows[i]["매출일자"]     = dtp_buy_date.Text;
                dtTemp.Rows[i]["전표번호"]     = txt_buy_cd.Text + "-" + (i / 13 + 1).ToString();
                dtTemp.Rows[i]["거래처사업자번호"] = custInfo.Rows[0]["SAUP_NO"].ToString();
                dtTemp.Rows[i]["거래처명"]     = custInfo.Rows[0]["CUST_NM"].ToString();
                dtTemp.Rows[i]["거래처대표자명"]  = custInfo.Rows[0]["OWNER"].ToString();
                dtTemp.Rows[i]["주소"]       = custInfo.Rows[0]["ADDR"].ToString();
                dtTemp.Rows[i]["대체사업자번호2"] = myinfo.Rows[0]["SAUP_NO"].ToString();
                dtTemp.Rows[i]["대체대표자"]    = Common.p_strUserName;
                dtTemp.Rows[i]["대체상호명"]    = myinfo.Rows[0]["COMPANY_NM"].ToString();
                dtTemp.Rows[i]["대체종목"]     = myinfo.Rows[0]["JONGMOK"].ToString();
                dtTemp.Rows[i]["대체주소"]     = myinfo.Rows[0]["ADDR"].ToString() + myinfo.Rows[0]["ADDR2"].ToString();
                dtTemp.Rows[i]["입력금액계"]    = txt_totalMoney.Text;
                dtTemp.Rows[i]["부가세액계"]    = txt_tax_money.Text;
                dtTemp.Rows[i]["포함금액계"]    = txt_rs_total_money.Text;

                dtTemp.Rows[i]["상품명"]  = inputRmGrid.Rows[i].Cells["LABEL_NM"].Value.ToString();
                dtTemp.Rows[i]["규격"]   = inputRmGrid.Rows[i].Cells["SPEC"].Value.ToString();
                dtTemp.Rows[i]["낱개수량"] = inputRmGrid.Rows[i].Cells["TOTAL_AMT"].Value.ToString() + inputRmGrid.Rows[i].Cells["UNIT_NM"].Value.ToString();
                dtTemp.Rows[i]["낱개단가"] = inputRmGrid.Rows[i].Cells["PRICE"].Value.ToString();
                dtTemp.Rows[i]["포함금액"] = inputRmGrid.Rows[i].Cells["TOTAL_MONEY"].Value.ToString();
                dtTemp.Rows[i]["박스수량"] = inputRmGrid.Rows[i].Cells["PAC_AMT"].Value.ToString();
                dtTemp.Rows[i]["비고"]   = inputRmGrid.Rows[i].Cells["COMMENT"].Value.ToString();
            }

            if (dtTemp.Rows.Count % 12 > 0)
            {
                int temp = dtTemp.Rows.Count;
                for (int i = 0; i < 12 - temp % 12; i++)
                {
                    dtTemp.Rows.Add();

                    dtTemp.Rows[i + temp]["표시페이지"]    = (i + temp) / 13 + 1;
                    dtTemp.Rows[i + temp]["표시순번"]     = ((i + temp) + 1).ToString();
                    dtTemp.Rows[i + temp]["매출일자"]     = dtp_buy_date.Text;
                    dtTemp.Rows[i + temp]["전표번호"]     = txt_buy_cd.Text + "-" + ((i + temp) / 13 + 1).ToString();
                    dtTemp.Rows[i + temp]["거래처사업자번호"] = custInfo.Rows[0]["SAUP_NO"].ToString();
                    dtTemp.Rows[i + temp]["거래처명"]     = custInfo.Rows[0]["CUST_NM"].ToString();
                    dtTemp.Rows[i + temp]["주소"]       = custInfo.Rows[0]["ADDR"].ToString();
                    dtTemp.Rows[i + temp]["대체사업자번호2"] = myinfo.Rows[0]["SAUP_NO"].ToString();
                    dtTemp.Rows[i + temp]["대체대표자"]    = Common.p_strUserName;
                    dtTemp.Rows[i + temp]["대체상호명"]    = myinfo.Rows[0]["COMPANY_NM"].ToString();
                    dtTemp.Rows[i + temp]["대체종목"]     = myinfo.Rows[0]["JONGMOK"].ToString();
                    dtTemp.Rows[i + temp]["대체주소"]     = myinfo.Rows[0]["ADDR"].ToString() + myinfo.Rows[0]["ADDR2"].ToString();
                    dtTemp.Rows[i + temp]["입력금액계"]    = txt_totalMoney.Text;
                    dtTemp.Rows[i + temp]["부가세액계"]    = txt_tax_money.Text;
                    dtTemp.Rows[i + temp]["포함금액계"]    = txt_rs_total_money.Text;
                    dtTemp.Rows[i + temp]["상품명"]      = "";
                    dtTemp.Rows[i + temp]["규격"]       = "";
                    dtTemp.Rows[i + temp]["낱개수량"]     = "";
                    dtTemp.Rows[i + temp]["낱개단가"]     = "";
                    dtTemp.Rows[i + temp]["포함금액"]     = "";
                    dtTemp.Rows[i + temp]["박스수량"]     = "";
                    dtTemp.Rows[i + temp]["비고"]       = "";
                }
            }


            frmPrt = readyPrt;
            frmPrt.Show();
            frmPrt.BringToFront();
            //frmPrt.prt_원자재재고현황(adoPrt, strDay1, strDay2, strCust, strCondition);
            frmPrt.prt_거래명세표(dtTemp, inputRmGrid, strCondition);

            btn출력.Enabled = true;
        }