private void Frm_Batch_Select_Load(object sender, EventArgs e) { //_Form1 = this.Owner as Form1; dtInputStart.Value = dtInputEnd.Value = DateTime.Now; BindData(MakerDAO.GetInstance().GetSampleInfo(DateTime.Parse(dtInputStart.Text), DateTime.Parse(dtInputEnd.Text).AddDays(1))); }
/// <summary> /// 发送制样计划 /// </summary> /// <returns></returns> private bool SendMakePlan(string RCSamplingId, string infactoryBatchId) { CmcsRCMake rcmake = MakerDAO.GetInstance().GetRCMakeBySampleId(RCSamplingId); if (rcmake != null) { CmcsMakerPlan makerPlan = new CmcsMakerPlan() { InterfaceType = GlobalVars.InterfaceType_NCGM_QZDZYJ, MachineCode = GlobalVars.MachineCode_NCGM_QZDZYJ_1, InFactoryBatchId = infactoryBatchId, MakeCode = rcmake.MakeCode, FuelKindName = "褐煤", Mt = "湿煤", MakeType = "在线制样", CoalSize = "小粒度" }; MakerDAO.GetInstance().SaveMakerPlan(makerPlan, out currentMessage); rTxtOutputer.Output(currentMessage, eOutputType.Normal); return(true); } else { rTxtOutputer.Output("制样计划发送失败:未找到制样主记录信息!", eOutputType.Error); } return(false); }
private void btnSearch_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(dtInputStart.Text)) { return; } if (string.IsNullOrEmpty(dtInputEnd.Text)) { return; } BindData(MakerDAO.GetInstance().GetSampleInfo(DateTime.Parse(dtInputStart.Text), DateTime.Parse(dtInputEnd.Text).AddDays(1))); }
private void btnToday_Click(object sender, EventArgs e) { CurrentDay = DateTime.Now; ShowDateTime(); BindData(MakerDAO.GetInstance().GetSampleInfo(DateTime.Parse(dtInputStart.Text), DateTime.Parse(dtInputEnd.Text).AddDays(1))); }