protected void cmdSave_Click(object sender, EventArgs e) { ComDB db = new ComDB(); ComLibrary comlb = new ComLibrary(); Message msg = new Message(g_user_id, g_lang); ComLibrary com = new ComLibrary(); DataSet ds = new DataSet(); Rcv rc1 = new Rcv(g_user_id, g_lang); int rtn = 0; if (txtITEM_NO.Text == "") { lblMsg.Text = msg.GetMessage("ITEM_NOT_EXIST_ERR"); lblMsg.ForeColor = Color.Red; return; } ds = rc1.GetPartNo(txtITEM_NO.Text); if (ds == null || ds.Tables[0].Rows.Count == 0) { lblMsg.Text = msg.GetMessage("ITEM_NOT_EXIST_ERR"); lblMsg.ForeColor = Color.Red; return; } if (!comlb.IsNumeric(txtRCV_QTY.Text.ToString())) { lblMsg.Text = "Receive Qty Error"; lblMsg.ForeColor = Color.Red; return; } rc1.part_no = txtITEM_NO.Text; rc1.receive_qty = com.StringToInt(txtRCV_QTY.Text); rc1.optmethod = "PC"; rtn = rc1.Insert(); if (rtn == ComConst.FAILED) { lblMsg.Text = rc1.strErr; lblMsg.ForeColor = Color.Red; return; } lblMsg.Text = msg.GetMessage("NORMAL_UPDATE"); lblMsg.ForeColor = Color.Blue; txtITEM_NO.Text = ""; txtRCV_QTY.Text = ""; }
protected override void GetPrintData() { using (var comodb = new ComDB()) { data = new PrintData { CorpInfo = new EntCorpInfo { COMPANY_NM = "", TELNO = "", FAXNO = "" }, OrderM = new EntOrderM(), OrderMB = new List <EntOrderMB>() }; } }