private object DataRowToObject(DataRow r, Type t) { if (t == typeof(VIModelDetailInfo)) { VIModelDetailInfo item = new VIModelDetailInfo(); DataSet.vi_model_detailRow dr = (DataSet.vi_model_detailRow)r; item.Model_id = dr.m_id; item.Model_name = dr.m_name; item.Part_id = dr.p_id; item.Part_name = dr.p_name; item.PartType_id = dr.pt_id; item.PartType_name = dr.pt_name; item.Part_mid = dr.p_mid_dimension; item.Part_max = dr.p_max_dimension; item.Part_min = dr.p_min_dimension; item.Part_cycletime = dr.p_cycletime; item.Group_id = dr.g_id; item.Rank_id = dr.gr_id; item.Rank_name = dr.r_name; item.Part_status = dr.p_status; return(item); } return(null); }
public string resultRHIDPerpen() { if (_idData != null) { string chartScript = ""; string partType = "ID PERPENDICULARITY"; VIModelDetailInfo _IDData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _IDData.Part_mid + _IDData.Part_max; _minVal = _IDData.Part_min; chartScript += dc.SetLineChartHeaderMax("RHIDPer", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesDataMax(partType, _idData, typeof(RHIDInfo), _maxVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }
public string resultPTBLPallism() { if (_blData != null) { string chartScript = ""; string partType = "BLADE PARALLISM"; VIModelDetailInfo _BLData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _BLData.Part_mid + _BLData.Part_max; _minVal = _BLData.Part_min; chartScript += dc.SetLineChartHeaderMax("PTBLPall", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesDataMax(partType, _blData, typeof(PTBLInfo), _maxVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }
public string resultPTODCylindricity() { if (_odData != null) { string chartScript = ""; string partType = "OD CYLINDRICITY"; VIModelDetailInfo _ODData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _ODData.Part_mid + _ODData.Part_max; _minVal = _ODData.Part_min; chartScript += dc.SetLineChartHeaderMax("PTODCy", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesDataMax(partType, _odData, typeof(PTODInfo), _maxVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }
public string resultPINRoundness() { if (_pinData != null) { string chartScript = ""; string partType = "PIN ROUNDNESS"; VIModelDetailInfo _ODData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _ODData.Part_mid + _ODData.Part_max; _minVal = _ODData.Part_min; chartScript += dc.SetLineChartHeaderMax("CSPINR", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesDataMax(partType, _pinData, typeof(CSPINInfo), _maxVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }
public string resultCYBOConcentric() { if (_boData != null) { string chartScript = ""; string partType = "BORE ID CONCENTRICITY"; VIModelDetailInfo _IDData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _IDData.Part_mid + _IDData.Part_max; _minVal = _IDData.Part_min; chartScript += dc.SetLineChartHeaderMax("CYBOCon", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesDataMax(partType, _boData, typeof(CYBOInfo), _maxVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }
public string resultPTHeight() { if (_heiData != null) { string chartScript = ""; string partType = "HEIGHT"; VIModelDetailInfo _HEIData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _HEIData.Part_mid + _HEIData.Part_max; _minVal = _HEIData.Part_mid + _HEIData.Part_min; _midVal = ((_maxVal + _minVal) / 2); chartScript += dc.SetLineChartHeader("PTHEI", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesData(partType, _heiData, typeof(PTHEIInfo), _maxVal, _midVal, _minVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }
public string resultECC() { if (_eccData != null) { string chartScript = ""; string partType = "ECCENTRICITY"; VIModelDetailInfo _ODData = viModelDetailSer.GetModelDetailDataByModelIDANDPartIDAndPartTypeName(_modelID, _partID, partType, ViewState["conStr"].ToString()); _maxVal = _ODData.Part_mid + _ODData.Part_max; _minVal = _ODData.Part_mid + _ODData.Part_min; _midVal = ((_maxVal + _minVal) / 2); chartScript += dc.SetLineChartHeader("CSECC", partType, startDate + " to " + endDate, _maxVal, _minVal); chartScript += dc.SetLineChartSeriesData(partType, _eccData, typeof(CSECCInfo), _maxVal, _midVal, _minVal); chartScript += dc.SetFooterChart(); return(chartScript); } else { return(""); } }