private void Init() { string rowid = Request.QueryString["rowid"]; head.GetInfo(rowid); _cStatus = (status)head.status; getDept(head.employee); lab_applicant.Text = _user; lab_depat.Text = _dept; lab_week.Text = new TaiwanCalendar().GetWeekOfYear(head.received_dt, System.Globalization.CalendarWeekRule.FirstDay, System.DayOfWeek.Sunday).ToString(); lab_Received.Text = head.received_dt.ToString("yyyy/MM/dd"); txt_bomdt.Text = head.manufacture_dt.ToString("yyyy/MM/dd"); txt_dispatch.Text = head.dispatch_no; txt_sample.Text = head.sample.ToString(); txt_tooling.Text = head.tooling_no; lab_Ra_NO.Text = head.ra_no; txt_remark.Text = head.remark; cbo_product.Items.Clear(); cbo_testtype.Items.Clear(); cbo_testitem.Items.Clear(); cbo_program.Items.Clear(); cbo_Machine.Items.Clear(); cbo_material.Items.Clear(); getProduct(cbo_product, true); cbo_product.SelectedValue = head.product; getTestType(cbo_testtype, true); cbo_testtype.SelectedValue = head.test_type; getTestItem(cbo_testitem, true); cbo_testitem.SelectedValue = head.test_item; getProgram(cbo_program, true); cbo_program.SelectedValue = head.program; getMachin(cbo_Machine); cbo_Machine.SelectedValue = head.equipment; getMaterial(cbo_material); cbo_material.SelectedValue = head.material; }
private void Init() { IPQC_Ra_Head head = new IPQC_Ra_Head(); head.GetInfo(_head_id); _statue = (status)head.status; lab_product.Text = getOptionName(head.product); product.Value = head.product; lab_testtype.Text = getOptionName(head.test_type); lab_testitem.Text = getOptionName(head.test_item); Dictionary <string, string> User = Utility.GetUIDInfo(head.employee); lab_applicant.Text = User["NAME"]; lab_depat.Text = User["DEPT"]; lab_week.Text = new TaiwanCalendar().GetWeekOfYear(head.received_dt, System.Globalization.CalendarWeekRule.FirstDay, System.DayOfWeek.Sunday).ToString(); lab_Received.Text = head.received_dt.ToString("yyyy/MM/dd"); lab_bomdt.Text = head.manufacture_dt.ToString("yyyy/MM/dd"); lab_dispatch.Text = head.dispatch_no; lab_material.Text = head.material; lab_program.Text = getOptionName(head.program); lab_sample.Text = head.sample.ToString(); lab_tooling.Text = head.tooling_no; lab_equipment.Text = head.equipment; lab_Ra_no.Text = head.ra_no; }
private void Init() { string rowid = Request.QueryString["rowid"]; head.GetInfo(rowid); _cStatus = (status)head.status; lab_product.Text = getOptionName(head.product); lab_testtype.Text = getOptionName(head.test_type); lab_testitem.Text = getOptionName(head.test_item); getDept(head.employee); lab_applicant.Text = _user; lab_depat.Text = _dept; lab_week.Text = new TaiwanCalendar().GetWeekOfYear(head.received_dt, System.Globalization.CalendarWeekRule.FirstDay, System.DayOfWeek.Sunday).ToString(); lab_Received.Text = head.received_dt.ToString("yyyy/MM/dd"); lab_bomdt.Text = head.manufacture_dt.ToString("yyyy/MM/dd"); lab_dispatch.Text = head.dispatch_no; lab_material.Text = getOptionName(head.material); lab_program.Text = getOptionName(head.program); lab_sample.Text = head.sample.ToString(); lab_tooling.Text = head.tooling_no; if (head.equipment != "") { lab_equipment.Text = IPQC_RaBase.getMachinName(head.equipment); } lab_Ra_NO.Text = head.ra_no; }
private void Init() { IPQC_Ra_Head head = new IPQC_Ra_Head(); head.GetInfo(_head_id); lab_product.Text = getOptionName(head.product); lab_testtype.Text = getOptionName(head.test_type); lab_testitem.Text = getOptionName(head.test_item); Dictionary <string, string> User = Utility.GetUIDInfo(head.employee); lab_applicant.Text = User["NAME"]; lab_depat.Text = User["DEPT"]; lab_week.Text = new TaiwanCalendar().GetWeekOfYear(head.received_dt, System.Globalization.CalendarWeekRule.FirstDay, System.DayOfWeek.Sunday).ToString(); lab_Received.Text = head.received_dt.ToString("yyyy/MM/dd"); lab_bomdt.Text = head.manufacture_dt.ToString("yyyy/MM/dd"); lab_dispatch.Text = head.dispatch_no; lab_material.Text = getOptionName(head.material); lab_program.Text = getOptionName(head.program); txt_receiptdt.Text = head.receipt_dt; lab_sample.Text = head.sample.ToString(); lab_tooling.Text = head.tooling_no; if (!string.IsNullOrEmpty(head.equipment)) { lab_equipment.Text = IPQC_RaBase.getMachinName(head.equipment); } lab_Ra_no.Text = head.ra_no; lab_remark.Text = head.remark; cbo_unit.SelectedValue = head.data_nuit; getColor(head.product); if (_status == status.Complete) { if (pass) { img_result.ImageUrl = "../img/Pass.png"; } else { img_result.ImageUrl = "../img/FAIL.png"; } } Btn_RemindReviewer.Text = getStr("remind_reviewer"); Btn_Stop.Text = getStr("stop"); //Btn_Send.Text = getStr("sb"); Btn_fail.Text = getStr("fail"); Btn_Save.Text = getStr("save"); Btn_Back.Text = getStr("back"); }
private void Init() { bool isshow = false; if (!string.IsNullOrEmpty(_lab_id)) { Inspect _ins = new Inspect(); _ins = getLab(_lab_id); lab_replay.Text = _ins.replay; lab_re_result.Text = _ins.report_result; lbtn_download.Text = _ins.report_name; if (!string.IsNullOrEmpty(_ins.report_result)) { isshow = true; } } panel_file.Visible = isshow; Utility.setVisable(isshow, lab_replay, lab_re_result, lbtn_download); IPQC_Ra_Head head = new IPQC_Ra_Head(); head.GetInfo(_head_id); lab_product.Text = getOptionName(head.product); lab_testtype.Text = getOptionName(head.test_type); lab_testitem.Text = getOptionName(head.test_item); Dictionary <string, string> User = Utility.GetUIDInfo(head.employee); lab_applicant.Text = User["NAME"]; lab_depat.Text = User["DEPT"]; lab_week.Text = new TaiwanCalendar().GetWeekOfYear(head.received_dt, System.Globalization.CalendarWeekRule.FirstDay, System.DayOfWeek.Sunday).ToString(); lab_Received.Text = head.received_dt.ToString("yyyy/MM/dd"); lab_bomdt.Text = head.manufacture_dt.ToString("yyyy/MM/dd"); lab_dispatch.Text = head.dispatch_no; lab_material.Text = getOptionName(head.material); lab_program.Text = getOptionName(head.program); lab_sample.Text = head.sample.ToString(); lab_tooling.Text = head.tooling_no; if (!string.IsNullOrEmpty(head.equipment)) { lab_equipment.Text = IPQC_RaBase.getMachinName(head.equipment); } lab_Ra_no.Text = head.ra_no; lab_remark.Text = head.remark; lab_unit.Text = getOptionName(head.data_nuit); lab_receipt.Text = head.receipt_dt; getColor(head.product); if (_status == status.Complete) { if (pass == 0) { img_result.ImageUrl = "../img/FAIL.png"; } else if (pass == 1) { img_result.ImageUrl = "../img/Pass.png"; } else { img_result.ImageUrl = "../img/OOC.png"; } } }