Example #1
0
        // 配置-获取规格型号
        public static List <SelectListItem> getConfigContent(string strType)
        {
            List <SelectListItem> ListItem = new List <SelectListItem>();
            DataTable             dtDesc   = FlowMeterPro.getConfigContent(strType);

            if (dtDesc == null)
            {
                return(ListItem);
            }
            SelectListItem SelListItem = new SelectListItem();

            if (strType != "CardType")
            {
                SelListItem.Value = "";
                SelListItem.Text  = "请选择";
                ListItem.Add(SelListItem);
            }
            for (int i = 0; i < dtDesc.Rows.Count; i++)
            {
                SelListItem       = new SelectListItem();
                SelListItem.Value = dtDesc.Rows[i]["SID"].ToString();
                SelListItem.Text  = dtDesc.Rows[i]["Text"].ToString();
                ListItem.Add(SelListItem);
            }
            return(ListItem);
        }
Example #2
0
 //修改
 public static bool UpdateQuotation(string RID, string type, string p, string DeviceName, string DeviceType, string Num, string UnitPrice, string TotalPrice, string Comments, string Measure, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateQuotation(RID, type, p, DeviceName, DeviceType, Num, UnitPrice, TotalPrice, Comments, Measure, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #3
0
 //撤销
 public static bool DeleteQuotation(string id, ref string a_strErr)
 {
     if (FlowMeterPro.DeleteQuotation(id, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #4
0
 //新增维修记录
 public static bool InsertRepairInfo(tk_RepairInfo cleanRepair, string BakName, string BakType, string Measure, string BakNum, ref string a_strErr)
 {
     if (FlowMeterPro.InsertRepairInfo(cleanRepair, BakName, BakType, Measure, BakNum, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #5
0
 //修改维修记录
 public static bool UpdateRepairInfo(tk_RepairInfo repairInfo, string BakName, string BakType, string Measure, string BakNum, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateRepairInfo(repairInfo, BakName, BakType, Measure, BakNum, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #6
0
 //删除清洗记录
 public static bool DeleteCleanRepair(string id, ref string a_strErr)
 {
     if (FlowMeterPro.DeleteCleanRepair(id, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #7
0
 //修改清洗记录
 public static bool UpdateCleanRepair(tk_CleanRepair cleanRepair, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateCleanRepair(cleanRepair, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #8
0
 //修改检测表
 public static bool UpdateCheckData2(tk_CheckData2 data, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateCheckData2(data, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #9
0
 // 修改-确认修改超声波登记卡
 public static bool UpdateCardUT(RepairCardUT repairCard, string Title, string Checked, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateCardUT(repairCard, Title, Checked, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #10
0
 // 新增-确认新增登记卡
 public static bool AddNewCard2(RepairCardNew repairCard, string Title, string Checked, string TitleUT, string CheckedUT, ref string a_strErr)
 {
     if (FlowMeterPro.AddNewCard2(repairCard, Title, Checked, TitleUT, CheckedUT, ref a_strErr) >= 2)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #11
0
 //新增检测
 public static bool InsertCheckData(tk_CheckData data, ref string a_strErr)
 {
     if (FlowMeterPro.InsertCheckData(data, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #12
0
 // 确认发货-判断选中的数据是否已经进行过出库记录操作
 public static bool CheckStockOutInfo(string IDs, ref string a_strErr)
 {
     if (FlowMeterPro.CheckStockOutInfo(IDs, ref a_strErr) == 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #13
0
 // 确认发货-确定出库
 public static bool AddStockOutInfo(tk_StockOut stockOut, string RIDs, ref string a_strErr)
 {
     if (FlowMeterPro.AddStockOutInfo(stockOut, RIDs, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #14
0
 // 超声波随工单管理-确认修改随工单
 public static bool UpdateWorkCardUT(tk_WorkCardUT workCard, ref string strErr)
 {
     if (FlowMeterPro.UpdateWorkCardUT(workCard, ref strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #15
0
 // 新增缴费记录-确定新增缴费记录
 public static bool AddNewPay(tk_Payment payment, string Checks, decimal LowPrice, ref string a_strErr)
 {
     if (FlowMeterPro.AddNewPay(payment, Checks, LowPrice, ref a_strErr) >= 2)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #16
0
 // 发货管理-确认修改
 public static bool UpdateSendDelivery(tk_SendDelivery sendDelivery, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateSendDelivery(sendDelivery, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #17
0
 // 新建送检单-确定提交
 public static bool InsertInspec(tk_InspecMain InspecMain, List <tk_InspecDetail> list, string[] OutUnit, ref string a_strErr)
 {
     if (FlowMeterPro.InsertInspec(InspecMain, list, OutUnit, ref a_strErr) > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #18
0
 // 修改送检单-确认修改
 public static bool UpdateInspec(tk_InspecMain inspecMain, List <tk_InspecDetail> list, string strRIDs, string[] OutUnit, ref string a_strErr)
 {
     if (FlowMeterPro.UpdateInspec(inspecMain, list, strRIDs, OutUnit, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #19
0
 // 修改缴费单-确认修改
 public static bool UpdatePayment(tk_Payment payment, decimal LowPrice, ref string a_strErr)
 {
     if (FlowMeterPro.UpdatePayment(payment, LowPrice, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #20
0
 // 下发任务-确定下发任务 1.在下发任务表中添加小组和人员信息 2.在维修登记卡中填入完成时间,是否送外部检测
 public static bool SendTask(string RID, string FinishDate, string Checked, ref string a_strErr)
 {
     if (FlowMeterPro.SendTask(RID, FinishDate, Checked, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #21
0
 // 缴费管理-确定撤销
 public static bool RePayment(string strPayID, string strQIDs, ref string a_strErr)
 {
     if (FlowMeterPro.RePayment(strPayID, strQIDs, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #22
0
 // 上传附件
 public static bool InsertNewFile(tk_FileUpload fileUp, byte[] fileByte, ref string a_strErr)
 {
     if (FlowMeterPro.InsertNewFile(fileUp, fileByte, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #23
0
 // 发货管理-撤销发货单
 public static bool ReSendDelivery(string strRIDs, ref string a_strErr)
 {
     if (FlowMeterPro.ReSendDelivery(strRIDs, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #24
0
 // 确认发货-确定
 public static bool CheckSendInfo(string RIDs, string DeliverID, string UnitName, string ReceiveName, string ReceiveTel,
                                  string ReceiveDate, string ReceiveAddr, string SendName, string SendTel, string SendDate, ref string a_strErr)
 {
     if (FlowMeterPro.CheckSendInfo(RIDs, DeliverID, UnitName, ReceiveName, ReceiveTel, ReceiveDate, ReceiveAddr, SendName, SendTel, SendDate, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #25
0
 // 确认收货-确定
 public static bool CheckReceive(string RIDs, string TakeID, string UnitName, string DeliverName, string DeliverTel,
                                 string DeliverDate, string ReceiveName, string ReceiveTel, string ReceiveDate, ref string a_strErr)
 {
     if (FlowMeterPro.CheckReceive(RIDs, TakeID, UnitName, DeliverName, DeliverTel, DeliverDate, ReceiveName, ReceiveTel, ReceiveDate, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #26
0
 // 随工单管理-确认修改随工单
 public static bool UpdateWorkCard(tk_WorkCard workCard, string Title, string Checked, string RID, string BakName,
                                   string BakType, string BakNum, string Comments, ref string strErr)
 {
     if (FlowMeterPro.UpdateWorkCard(workCard, Title, Checked, RID, BakName, BakType, BakNum, Comments, ref strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #27
0
        // 新增-超声波加载承压等级下拉框
        public static string GetPressureUT(string strModel)
        {
            string strPressureUT = FlowMeterPro.GetPressureUT(strModel);

            if (strPressureUT != "")
            {
                return(strPressureUT);
            }
            else
            {
                return("");
            }
        }
Example #28
0
        // 新增-加载流量范围下拉框
        public static string GetFlowRange(string strModel)
        {
            string strFlowRange = FlowMeterPro.GetFlowRange(strModel);

            if (strFlowRange != "")
            {
                return(strFlowRange);
            }
            else
            {
                return("");
            }
        }
Example #29
0
 // 流转卡管理-确认修改流转卡
 public static bool UpdateTransCard(string TID, string RID, string FirstCheck, string SendRepair, string LastCheck, string OneRepair,
                                    string TwoCheck, string TwoRepair, string ThreeCheck, string ThreeRepair, string Comments, ref string strErr)
 {
     if (FlowMeterPro.UpdateTransCard(TID, RID, FirstCheck, SendRepair, LastCheck, OneRepair, TwoCheck, TwoRepair, ThreeCheck,
                                      ThreeRepair, Comments, ref strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #30
0
        // 导出-获取明细列表
        public static DataTable GetDetailInfo(string strWhere)
        {
            DataTable dtList = new DataTable();

            dtList = FlowMeterPro.GetDetailInfo(strWhere);

            if (dtList == null)
            {
                return(null);
            }
            else
            {
                return(dtList);
            }
        }