// DELEGATE PART :: BEGIN void RefreshClick(object sender, EventArgs e) { string queryString = @" SELECT A.UNIQUE_KEY THE_CODE, A.EMP_ID, B.FULLNAME FROM USERS A LEFT OUTER JOIN EMPLOYEE B ON A.EMP_ID = B.EMP_ID WHERE A.USER_ID = " + btn_dgv.DGV.SelectedRows[0].Cells["USER_ID"].Value.ToString(); using (DataTable DT = DB.getS(queryString, null, "GET CODE, NAME FOR EMPLOYEE BARCODE", false)) { PRINT.initPrint(false, "EMPLOYEE_BARCODE", "", this, false, false, false, DT.Rows[0]["THE_CODE"].ToString(), "", (DT.Rows[0]["EMP_ID"].ToString() == "0" ? "SYSTEM ADMINISTRATOR" : DT.Rows[0]["FULLNAME"].ToString())); } }
private void print_preview_btn_Click(object sender, EventArgs e) { GF.showLoading(this); PRINT.initPrint(false, "ATTACHMENT", filename, this); }
private void attach_paper_btn_Click(object sender, EventArgs e) { PRINT.initPrint(isFile, type_name[card_type] + "_LETTER", file3, this, false, false, (card_type == 0 || card_type == 1 ? true : false), card_no, expire_date, spaProgramName, price, from_txt, for_txt); }
private void print_card2_btn_Click(object sender, EventArgs e) { PRINT.initPrint(isFile, type_name[card_type], file2, this, false, (card_type == 0 || card_type == 1 ? true : false), false, card_no, expire_date, spaProgramName, price, from_txt, for_txt); }