Ejemplo n.º 1
0
        public UCWareHouseAddOrEdit(WindowStatus status, string wareHouseId, UCWareHouseManager uc)
        {
            InitializeComponent();
            this.dgvWareHouseList.ReadOnly = false;
            this.windowStatus = status;
            this.wareHouseId = wareHouseId;
            this.uc = uc;
            BindDllInfo();
            if (status == WindowStatus.Edit || status == WindowStatus.Copy)
            {
                LoadInfo(wareHouseId);
                GetAllCargoSpace(wareHouseId);

                ucAttr.TableName = "tb_warehouse";
                ucAttr.TableNameKeyValue = wareHouseId;
                ucAttr.BindAttachment();
            }
            if (status == WindowStatus.Add || status == WindowStatus.Copy)
            {
                lblwh_code.Text = CommonUtility.GetNewNo(DataSources.EnumProjectType.WareHouse);
            }
            base.SaveEvent += new ClickHandler(UCWareHouseAddOrEdit_SaveEvent);
            base.StatusEvent += new ClickHandler(UCWareHouseAddOrEdit_StatusEvent);
            base.DeleteEvent += new ClickHandler(UCWareHouseAddOrEdit_DeleteEvent);

        }
Ejemplo n.º 2
0
        public UCWareHouseAddOrEdit(WindowStatus status, string wareHouseId, UCWareHouseManager uc)
        {
            InitializeComponent();
            this.dgvWareHouseList.ReadOnly = false;
            this.windowStatus = status;
            this.wareHouseId  = wareHouseId;
            this.uc           = uc;
            BindDllInfo();
            if (status == WindowStatus.Edit || status == WindowStatus.Copy)
            {
                LoadInfo(wareHouseId);
                GetAllCargoSpace(wareHouseId);

                ucAttr.TableName         = "tb_warehouse";
                ucAttr.TableNameKeyValue = wareHouseId;
                ucAttr.BindAttachment();
            }
            if (status == WindowStatus.Add || status == WindowStatus.Copy)
            {
                lblwh_code.Text = CommonUtility.GetNewNo(DataSources.EnumProjectType.WareHouse);
            }
            base.SaveEvent   += new ClickHandler(UCWareHouseAddOrEdit_SaveEvent);
            base.StatusEvent += new ClickHandler(UCWareHouseAddOrEdit_StatusEvent);
            base.DeleteEvent += new ClickHandler(UCWareHouseAddOrEdit_DeleteEvent);
        }
Ejemplo n.º 3
0
 public UCWareHouseView(string wareHouseId, UCWareHouseManager ParentFrm)
 {
     InitializeComponent();
     LoadInfo(wareHouseId);
     GetAllCargoSpace(wareHouseId);
     ucAttr.TableName = "tb_warehouse";
     ucAttr.TableNameKeyValue = wareHouseId;
     ucAttr.BindAttachment();
     ucAttr.ReadOnly = true;
     ucAttr.Size = tabPage2.Size;
     uc = ParentFrm;
     SubscribeEvent();
 }
Ejemplo n.º 4
0
 public UCWareHouseView(string wareHouseId, UCWareHouseManager ParentFrm)
 {
     InitializeComponent();
     LoadInfo(wareHouseId);
     GetAllCargoSpace(wareHouseId);
     ucAttr.TableName         = "tb_warehouse";
     ucAttr.TableNameKeyValue = wareHouseId;
     ucAttr.BindAttachment();
     ucAttr.ReadOnly = true;
     ucAttr.Size     = tabPage2.Size;
     uc = ParentFrm;
     SubscribeEvent();
 }
Ejemplo n.º 5
0
 private void picCkzl_Click(object sender, EventArgs e)
 {
     UCWareHouseManager uc = new UCWareHouseManager();
     string tag = "CL_DataManagement|CL_DataManagement_BasicData|CL_DataManagement_BasicData_Warehouse";
     UCBase.AddUserControl(uc, "仓库资料", "CL_DataManagement_BasicData_Warehouse", tag, "");
 }