DAL/»ù´¡×ÊÁÏ/InterFace»ù´¡×ÊÁÏ/ClsIF_Property_View.cs
@@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Text; using System.Data; using DBUtility; namespace DAL { @@ -17,8 +18,10 @@ public ClsIF_Property_View() { base.MvarReportTitle = "è¾ å©å±æ§è®¾ç½®"; base.MvarItemKey = "h_v_IF_Property"; base.SQLName = "Select HItemID,HNumber è¾ å©å±æ§ä»£ç ,HName è¾ å©å±æ§ from h_v_IF_Property where HStopflag=0 "; base.MvarItemKey = "h_v_IF_PropertyByMaterID"; base.SQLName = "Select HItemID,HNumber è¾ å©å±æ§ä»£ç ,HName è¾ å©å±æ§ from h_v_IF_PropertyByMaterID "; base.SQLWhere = " where HStopflag=0 "; base.SQLOrder = " "; //䏿SQL base.SQLNameForDown = " Select top 30 HItemID,HNumber è¾ å©å±æ§ä»£ç ,HName è¾ å©å±æ§ from h_v_IF_Property "; base.SQLOrderForDown = " Order by HNumber "; @@ -94,5 +97,71 @@ throw (e); } } /// <summary> /// åºç¡èµæå¸®å©-å ¨é¨å /// </summary> /// <returns></returns> public override bool RefreshView(string sLike) { try {// Pub_Control.frmHlpInfo_View ofrm = new Pub_Control.frmHlpInfo_View(); // string sSQL = SQLName + SQLWhere + sLike + SQLOrder; //ç¼è¾ofrm ofrm.sTitle = MvarReportTitle; ofrm.sBill = MvarItemKey; ofrm.txtFindInfo.Text = WherePart; // DataSet Ds; Pub_Class.ClsSqlHelper oCn = new Pub_Class.ClsSqlHelper(); Ds = oCn.RunProcReturn(sSQL, MvarItemKey); if (Ds == null || Ds.Tables[0].Rows.Count == 0) { return false; } //ç»å® ofrm.grdShow.DataSource = Ds.Tables[0].DefaultView; Ds.Dispose(); Ds = null; ofrm.grdShow.SuspendLayout(); ofrm.grdShow.Columns[0].Visible = false; ofrm.ShowDialog(); //å¾å°å¯¹åºå int HItemIDCol = 0; int HNumberCol = 1; int HNameCol = 2; // if (ofrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) { if (ofrm.grdShow.CurrentRow == null) { return false; } oModel = new ClsGy_Base_Model(); oModel.HItemID = Pub_Class.ClsPub.isLong(ofrm.grdShow.Rows[ofrm.grdShow.CurrentRow.Index].Cells[0].Value); oModel.HNumber = Pub_Class.ClsPub.isStrNull(ofrm.grdShow.Rows[ofrm.grdShow.CurrentRow.Index].Cells[1].Value); oModel.HName = Pub_Class.ClsPub.isStrNull(ofrm.grdShow.Rows[ofrm.grdShow.CurrentRow.Index].Cells[2].Value); } else { return false; } // ofrm.Dispose(); ofrm = null; // return true; } catch (Exception e) { throw (e); } } } } DBUtility/obj/Release/.NETFramework,Version=v4.0.AssemblyAttributes.cs
New file @@ -0,0 +1,4 @@ // <autogenerated /> using System; using System.Reflection; [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")] DBUtility/obj/Release/DBUtility.FrmSelectDate.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Gy_UserSelect.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_BillCheckFlowStatusNow.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_BillType.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_CheckFlow.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_CheckFlowList.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_CheckItem.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_CheckUserRight.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_ProcessWait.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.Xt_Wait.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.csproj.GenerateResource.CacheBinary files differ
DBUtility/obj/Release/DBUtility.csproj.ResolveComReference.cacheBinary files differ
DBUtility/obj/Release/DBUtility.csprojAssemblyReference.cacheBinary files differ
DBUtility/obj/Release/DBUtility.dllBinary files differ
DBUtility/obj/Release/DBUtility.frmBillQueryCondition_New.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.frm_B_BillQueryCondition_New.resourcesBinary files differ
DBUtility/obj/Release/DBUtility.pdbBinary files differ
DBUtility/obj/Release/ResolveAssemblyReference.cacheBinary files differ
DBUtility/obj/Release/build.force
LMES/bin/x86/HXERP.ini
New file @@ -0,0 +1,37 @@ [po] Server=47.96.97.237,15127 [Erp] Server=47.96.97.237,15127 DataBase=HX_LMESsys DataBaseNumber=001-æºäºLMES管çç³»ç» UserName=HX_USER PassWord=lc@841022 UserPsd= Remember= [K3Erp] Server=47.96.97.237,15127 DataBase= UserName=HX_USER PassWord=lc@841022 [K32Erp] Server=47.96.97.237,15127 DataBase=HX_LMESsys UserName=HX_USER PassWord=lc@841022 [SRM] Server=.\sql2008 DataBase=hx_lims_SRM UserName=HX_USER PassWord=lc@841022 [UserInfo] UserName=admin,æ¯çç« ,ç管å,æ¡ç ,æµè¯ç¨æ· UserPsd= Remember=1 HOrgName=ææºäºä¸é¨ [CLOUDINFO] sCLOUDUrl=ddddd sCLOUDAcc=4455xddd sCLOUDUseName=顾é®1 sCLOUDPsd=123456 WarM/ÌõÂë´òÓ¡/Gy_BarCodeBill.cs
@@ -156,6 +156,7 @@ public Int64 HInterID = 0; //å ç public Int64 HOrgID = -1; public string HOrgNumber = ""; public string ERPMode = ""; //ERP模å¼ï¼WISEãCLOUDï¼ public string CampanyName = ""; //客æ·å®å¶ååç§° public string SourceQtyCtl = ""; //è¶ æºåæ°éæ§å¶ //------------------------------------------------------------------------- @@ -373,6 +374,7 @@ } else { ERPMode = oSystemParameter.omodel.WMS_WMSStockCtl_ERPMode; CampanyName = oSystemParameter.omodel.WMS_CampanyName; SourceQtyCtl = oSystemParameter.omodel.BarCode_SourceQtyCtl; } @@ -975,6 +977,7 @@ grdSub.RowCount = 0; grdMain.ColumnCount = 60; //æ»åæ° DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); grdMain.Columns[HSnoCol].HeaderText = "åºå·"; grdMain.Columns[HMainIDCol].HeaderText = "æºå主ID"; grdMain.Columns[HSubIDCol].HeaderText = "æºååID"; grdMain.Columns[HBillNoCol].HeaderText = "æºååå·"; @@ -1027,7 +1030,6 @@ grdMain.Columns[HInnerBillNoCol].HeaderText = "å é¨éè´è®¢åå·"; grdMain.Columns[HMakerCol].HeaderText = "å¶å人"; //// grdMain.Columns[HSnoCol].HeaderText = "åºå·"; //æ ¼å¼å grdMain.Columns[HTagCol].Visible = false; //éèå grdMain.Columns[HMainIDCol].Visible = false; @@ -1037,8 +1039,8 @@ grdMain.Columns[HModelCol].Visible = false; //grdMain.Columns[HBatchNoCol].Visible = false; grdMain.Columns[HAuxPropIDCol].Visible = false; grdMain.Columns[HAuxPropNumberCol].Visible = false; grdMain.Columns[HAuxPropNameCol].Visible = false; //grdMain.Columns[HAuxPropNumberCol].Visible = false; //grdMain.Columns[HAuxPropNameCol].Visible = false; grdMain.Columns[HUnitIDCol].Visible = false; grdMain.Columns[HinitQtyCol].Visible = false; grdMain.Columns[HSupIDCol].Visible = false; @@ -1153,8 +1155,8 @@ grdSub.Columns[HMaterID2Col].Visible = false; grdSub.Columns[HModel2Col].Visible = false; grdSub.Columns[HAuxPropID2Col].Visible = false; grdSub.Columns[HAuxPropNumber2Col].Visible = false; grdSub.Columns[HAuxPropName2Col].Visible = false; //grdSub.Columns[HAuxPropNumber2Col].Visible = false; //grdSub.Columns[HAuxPropName2Col].Visible = false; grdSub.Columns[HUnitID2Col].Visible = false; grdSub.Columns[HPrintCol].Visible = false; grdSub.Columns[HSourceInterID2Col].Visible = false; @@ -1336,6 +1338,7 @@ } DAL.ClsIF_Material_View oMater = new DAL.ClsIF_Material_View();//ç©æ DAL.ClsIF_Unit_View oUnit = new DAL.ClsIF_Unit_View();//计éåä½ DAL.ClsIF_Property_View oProperty = new DAL.ClsIF_Property_View();//è¾ å©å±æ§ if (!grdStatus) { return; @@ -1368,6 +1371,9 @@ grdMain.Rows[sRow].Cells[HMinQtyCol].Value = oMater.omodel.HQtyMin; grdMain.Rows[sRow].Cells[HDateCol].Value = dtpHDate.Value.ToShortDateString(); grdMain.Rows[sRow].Cells[HShowDateCol].Value = dtpHDate.Value.ToShortDateString(); grdMain.Rows[sRow].Cells[HAuxPropIDCol].Value = 0; grdMain.Rows[sRow].Cells[HAuxPropNumberCol].Value = ""; grdMain.Rows[sRow].Cells[HAuxPropNameCol].Value = ""; if (oUnit.GetInfoByID(oMater.omodel.HUnitID)) { grdMain.Rows[sRow].Cells[HUnitIDCol].Value = oUnit.omodel.HItemID.ToString(); @@ -1392,6 +1398,9 @@ grdMain.Rows[sRow].Cells[HUnitIDCol].Value = 0; grdMain.Rows[sRow].Cells[HUnitNumberCol].Value = ""; grdMain.Rows[sRow].Cells[HUnitNameCol].Value = ""; grdMain.Rows[sRow].Cells[HAuxPropIDCol].Value = 0; grdMain.Rows[sRow].Cells[HAuxPropNumberCol].Value = ""; grdMain.Rows[sRow].Cells[HAuxPropNameCol].Value = ""; } } else @@ -1402,6 +1411,11 @@ grdMain.Rows[sRow].Cells[HMaterModelCol].Value = ""; grdMain.Rows[sRow].Cells[HMinQtyCol].Value = 0; grdMain.Rows[sRow].Cells[HUnitIDCol].Value = 0; grdMain.Rows[sRow].Cells[HUnitNumberCol].Value = ""; grdMain.Rows[sRow].Cells[HUnitNameCol].Value = ""; grdMain.Rows[sRow].Cells[HAuxPropIDCol].Value = 0; grdMain.Rows[sRow].Cells[HAuxPropNumberCol].Value = ""; grdMain.Rows[sRow].Cells[HAuxPropNameCol].Value = ""; } break; @@ -1435,6 +1449,31 @@ case HDateCol: BLL.ClsPub_BLL.Sub_SelectDate(grdMain, sRow, HDateCol); oEdit.Text = DBUtility.ClsPub.isStrNull(grdMain.Rows[sRow].Cells[HDateCol].Value); break; case HAuxPropNumberCol: oProperty.WherePart = ""; if (ERPMode == "CLOUD") { sWhere = " and HMaterNumber = '" + DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[HMaterNumberCol].Value) + "'"; } else { sWhere = ""; } if (oProperty.RefreshView(sWhere)) { grdMain.Rows[sRow].Cells[HAuxPropIDCol].Value = oProperty.oModel.HItemID.ToString(); grdMain.Rows[sRow].Cells[HAuxPropNumberCol].Value = oProperty.oModel.HNumber; grdMain.Rows[sRow].Cells[HAuxPropNameCol].Value = oProperty.oModel.HName; oEdit.Text = oProperty.oModel.HNumber; } else { grdMain.Rows[sRow].Cells[HAuxPropIDCol].Value = 0; grdMain.Rows[sRow].Cells[HAuxPropNumberCol].Value = ""; grdMain.Rows[sRow].Cells[HAuxPropNameCol].Value = ""; } break; @@ -1797,9 +1836,10 @@ //-- //设置å¯ç¼è¾å string sAllowCol = HQtyCol.ToString() + "," + HMinQtyCol.ToString() + "," + HAuxPropNumberCol.ToString() + "," + HBatchNoCol.ToString() + "," + HRemarkCol.ToString() + "," + HMinQtyCol.ToString(); "," + HRemarkCol.ToString(); grdMain.Columns[HBillNoCol].ReadOnly = true; //设置å计å string sTotalCol = HQtyCol.ToString(); @@ -1870,9 +1910,10 @@ //-- //设置å¯ç¼è¾å string sAllowCol = HQtyCol.ToString() + "," + HMinQtyCol.ToString() + "," + HAuxPropNumberCol.ToString() + "," + HBatchNoCol.ToString() + "," + HRemarkCol.ToString() + "," + HMinQtyCol.ToString(); "," + HRemarkCol.ToString(); grdMain.Columns[HBillNoCol].ReadOnly = true; //设置å计å string sTotalCol = HQtyCol.ToString();